15 lines
179 B
ArmAsm
15 lines
179 B
ArmAsm
|
.text
|
||
|
.org 0x20
|
||
|
stev1: .word 0x00000001
|
||
|
stev2: .word 0x00000002
|
||
|
|
||
|
.global _start
|
||
|
_start:
|
||
|
|
||
|
adr r0, stev1
|
||
|
|
||
|
ldrh r1, [r0]
|
||
|
ldrh r2, [r0, #4]
|
||
|
|
||
|
str r2, [r0]
|
||
|
str r1, [r0, #4]
|