23 lines
226 B
ArmAsm
23 lines
226 B
ArmAsm
|
.text
|
||
|
.org 0x20
|
||
|
|
||
|
stev1: .hword 10
|
||
|
stev2: .hword 5
|
||
|
rez: .space 2
|
||
|
|
||
|
.align
|
||
|
|
||
|
.global _start
|
||
|
_start:
|
||
|
|
||
|
adr r0, stev1
|
||
|
ldrh r1, [r0]
|
||
|
|
||
|
adr r0, stev2
|
||
|
ldrh r2, [r0]
|
||
|
|
||
|
add r1, r2
|
||
|
|
||
|
adr r0, rez
|
||
|
str r1, [r0]
|