21 lines
199 B
ArmAsm
21 lines
199 B
ArmAsm
.text
|
|
.org 0x20
|
|
|
|
stev1: .word 10
|
|
stev2: .word 5
|
|
rez: .space 4
|
|
|
|
.global _start
|
|
_start:
|
|
|
|
adr r0, stev1
|
|
ldr r1, [r0]
|
|
|
|
adr r0, stev2
|
|
ldr r2, [r0]
|
|
|
|
sub r1, r2
|
|
|
|
adr r0, rez
|
|
str r1, [r0]
|