ARM assembler register read

Note: This was originally posted on 11th September 2010 at http://forums.arm.com

Hello All,

I need a quick example of how to place a value from a hardware register (0x70001234 for example) into a register such as R0
then compare it to a constant such as 0xE0680003 and do a branch based on equality.

So far I have had no luck getting something this simple to work.

Thanks,
Dennis
Parents
  • Note: This was originally posted on 24th September 2010 at http://forums.arm.com

    Also note that in the ARM, program/data memory transactions are denoted by the bracket "[  ]".
    On some processors, this is the parenthesis or the "@" sign.

    Stack transactions are denoted by braces "{  }".

    Well, as long as the machine code is correct, who cares?  :-)
Reply
  • Note: This was originally posted on 24th September 2010 at http://forums.arm.com

    Also note that in the ARM, program/data memory transactions are denoted by the bracket "[  ]".
    On some processors, this is the parenthesis or the "@" sign.

    Stack transactions are denoted by braces "{  }".

    Well, as long as the machine code is correct, who cares?  :-)
Children
No data
More questions in this forum