ra/naloga_03/vaja_02.s

22 lines
240 B
ArmAsm
Raw Normal View History

2023-11-06 08:00:05 +00:00
.text
.org 0x20
@spremenljivke
stev1: .word 0x12345678
2023-11-08 14:18:50 +00:00
stev2: .byte 128
2023-11-06 08:00:05 +00:00
.align
2023-11-08 14:18:50 +00:00
stev3: .hword 0xF123
2023-11-06 08:00:05 +00:00
.align
.global _start
_start:
@program
adr r0, stev1
ldr r1, [r0]
adr r0, stev2
ldr r1, [r0]
adr r0, stev3
ldr r1, [r0]