ARM assembly question wiht hexidecimal values

0

If i have 0x00000065 stored in a register, is that the same as having 0X65 in my register?

Thank you so much.

math
assembly
arm
hex
asked on Stack Overflow Nov 21, 2018 by MangoKitty

2 Answers

1

Yes, it's the same two hexadecimal values:

0x00000065 = 5*(16^0) + 6*(16^1) + 0*(16^2) + ... + 0*(16^7) = 5*(16^0) + 6*(16^1) = 0x65

(Note: the symbol '^' denotes the power operator)

answered on Stack Overflow Nov 22, 2018 by DavidPM
-3

Registers are 32 bits long so you can't have 0x65 in one, only 0x00000065.

But of course, these are equal numbers.

answered on Stack Overflow Nov 22, 2018 by Yves Daoust

User contributions licensed under CC BY-SA 3.0