keeping value of c in the valid range of uint8_t
keeping value of c in the valid range of uint8_t

It's not always the case somewhy. I encountered the c having values of 256 which in turn led to an exception.
ahefner/asm6502,ahefner/asm6502