@Ashbad, colons may not be necessary, but they increase the readability of your code and help when people are trying to help you with it. Not to mention, it is a nice style and makes your code prettier (which happens to be a big thing with me )
@David, I still don't really like the hEx thing, because it seems like you are doing so much more work than is necessary. But, to the xor a thing. xor REG8 takes an 8 bit register, and xors it with A. So when you do xor a, you are doing this: A = A xor A. If A is 10110010, then you are doing:
Code:
Does that make sense?
@David, I still don't really like the hEx thing, because it seems like you are doing so much more work than is necessary. But, to the xor a thing. xor REG8 takes an 8 bit register, and xors it with A. So when you do xor a, you are doing this: A = A xor A. If A is 10110010, then you are doing:
Code:
10110010
10110010 XOR
--------
00000000