22 lines
243 B
ArmAsm
22 lines
243 B
ArmAsm
|
.text
|
||
|
.org 0x20
|
||
|
|
||
|
stev1: .word 0x01020304
|
||
|
|
||
|
.align
|
||
|
|
||
|
.global _start
|
||
|
_start:
|
||
|
|
||
|
adr r0, stev1
|
||
|
|
||
|
ldrb r1, [r0]
|
||
|
ldrb r2, [r0, #3]
|
||
|
strb r2, [r0]
|
||
|
strb r1, [r0, #3]
|
||
|
|
||
|
ldrb r1, [r0, #1]
|
||
|
ldrb r2, [r0, #2]
|
||
|
strb r2, [r0, #1]
|
||
|
strb r1, [r0, #2]
|
||
|
|