const unsigned char * cp;         //cp is made const since we should not use it to write

cp = &dummy;                      // address taken and assigned
while(cp != &dummy[0x1000])       // pointer comparison
  total += *cp++;                 // pointer deference