GBAGUY's tutorial: Day 10
Moderator: Moderators
- Laserbeak43
- Posts: 188
- Joined: Fri Sep 21, 2007 4:31 pm
- Contact:
No, a byte is 8 bits!Laserbeak43 wrote:a byte as in 16 bits right?
20 decimal is $14 in hex. But this is not important in this case, since that number goes nowhere, it's not used for anything.so 20 is really 16 in hex?
Usually, numbers without any prefix character are decimal. A "$" before the number indicates it's hexadecimal, and a "%" indicates it's binary, in most assemblers.i don't see anything in the code saying wether or not this 20 is hex. are all numbers hex by default?
- Laserbeak43
- Posts: 188
- Joined: Fri Sep 21, 2007 4:31 pm
- Contact:
lol i knew that! i was just testing you!!!!!tokumaru wrote:No, a byte is 8 bits!Laserbeak43 wrote:a byte as in 16 bits right?
20 decimal is $14 in hex. But this is not important in this case, since that number goes nowhere, it's not used for anything.so 20 is really 16 in hex?
Usually, numbers without any prefix character are decimal. A "$" before the number indicates it's hexadecimal, and a "%" indicates it's binary, in most assemblers.i don't see anything in the code saying wether or not this 20 is hex. are all numbers hex by default?
man i truly am rusty. 20 in hex would be more like 32 or something.
thanks