Thread: ASM: Resources
View Single Post
Old 08 January 2015, 17:39   #45
Going nowhere

Galahad/FLT's Avatar
Join Date: Oct 2001
Location: United Kingdom
Age: 46
Posts: 7,309

By now you may understand that FF is the highest number in a byte (in hex), just like 99 is the highest number out of a 2 digit decimal number. Adding 1 to 99 (in decimal) results in 100, for hex it would be the same thing, adding 1 to FF (in hex) results in 100.

If you add 1 to $ff, you don't get $100, you get ZERO, as its on a byte boundary, and he quite explicitly is stating about bytes.

You would only get $100 if you were dealing with a word or a longword.
Galahad/FLT is offline  
Page generated in 0.04065 seconds with 11 queries