I am trying to learn ARM assembly and I wanted to store a signed number in a register, it has to be something like -
MOV R0, #-10
But this stores the number normally and not as a signed number. I tried using LDRSB
as -
LDRSB R0, =0x0000000A
, but it gave me errors.
Assembly language is specific to the assembler. Did you mean arm7 or armv7?
This is gnu assembler
try again
so were you looking at (full sized) ARM then?
Which is the easiest one of the three to encode. And you can easily see the encoding in the ARM documentation. And the tools have already done half the work for you (0xfffffff6).
If you meant armv7 then