0

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

Thank you so much.

3
  • 4
    yes. The leading zeros contribute nothing to the real value
    – phuclv
    Nov 22, 2018 at 0:11
  • 1
    It's the same with the denary numbers you're used to, if you have $2 or $0000002 you have the same amount of money.
    – Colin
    Nov 22, 2018 at 7:55
  • what does this have to do with assembly, and if it is an assembly question show the assembly and indicate which assembler you are using as the assembler determines how numbers are interpreted/used not the target instruction set.
    – old_timer
    Nov 22, 2018 at 14:55

1 Answer 1

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)

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.