Category:ARM Assembly: Difference between revisions

Content added Content deleted
 
Line 46: Line 46:
MyCode:
MyCode:
adr R2,RAM_Address ;get the address of a nearby place to store values.
adr R2,RAM_Address ;get the address of a nearby place to store values.
MOV R0,#0x12345678 ;the value to store.
MOV R0,#0x12345678 ;the value to store.
STR R0,[R2] ;store 0x12345678 into the first 32-bit slot.</lang>
STR R0,[R2] ;store 0x12345678 into the first 32-bit slot.</lang>