How to use MOV instruction in ARM with an immediate number as the second operand
Posted
by Summer_More_More_Tea
on Stack Overflow
See other posts from Stack Overflow
or by Summer_More_More_Tea
Published on 2010-04-12T18:40:19Z
Indexed on
2010/04/12
18:43 UTC
Read the original article
Hit count: 315
Hi everyone:
I just begin to study ARM assembly language, and am not clear about how to use MOV to transfer an immediate number into a register.
From both the ARM reference manual and my textbook, it's said that range of immediate number following MOV instruction is 0-255. But when I test on my own PC in ADS 1.2 IDE, instruction
MOV R2, #0xFFFFFFFF
performs well. Isn't number 0xFFFFFFFF out of range according to the specification?
Hope someone can give me a hand.
Regards.
© Stack Overflow or respective owner