# Where does the 0x get stored in memory while storing memory address in a register in a microcontroller

For eg. LDR R0, =#0x20000001 20000001 is now stored in R0 but where is 0x stored?

• It isn't stored – user_1818839 May 2 '20 at 15:15
• 0x is a prefix specifying that the operand is a hexadecimal number. – Peter Smith May 2 '20 at 15:27
• The # isnt stored either – old_timer May 2 '20 at 16:48
• note that is not the correct syntax for the mainstream arm/cortex-ms assemblers (gnu, arm, etc) LDR R0,=0x20000001 is correct the # is used like this for example mov r0,#0x20000001, which is actually a legal immediate for some arm instruction sets (but not any in an stm32) – old_timer May 2 '20 at 16:55