I’m a bit of confused in inputted characters. When I input a character, the inputted character is then stored in al. So, what’s the format of that inputted character? Is it in hex or decimal?
I need to know because I’ll use it in a nested loop. It’s my first time to use an inputted character as a limiter in a loop.
Thanks! 🙂
Hexadecimal, decimal, binary, etc are just ways of representing data. If you input the ASCII character ‘A’ into register
ALit has the same value regardless of representation, i.e. registerALcontains65(decimal) which is the same as0x41(hex) or01000001b(binary). In other words it’s the same bit pattern in the register, it’s just up to you how you choose to represent it.