Category:ARM Assembly: Difference between revisions

 
(One intermediate revision by the same user not shown)
Line 46:
MyCode:
adr R2,RAM_Address ;get the address of a nearby place to store values.
MOV R0,#0x12345678 ;the value to store.
STR R0,[R2] ;store 0x12345678 into the first 32-bit slot.</lang>
 
Line 170:
}</lang>
 
<lang ARM Assembly>mov r0, #255 ;MOV R0,#0xFF
mov r0, #255 ;MOV R0,#0xFF
orr r0, r0, #65280 ;ORR R0,#0xFF00 (0xFF00|0x00FF = 0xFFFF)</lang>
 
1,489

edits