ra/sprotne_naloge/naloga_04/vaja_04.s

22 lines
243 B
ArmAsm
Raw Normal View History

2023-11-06 08:00:05 +00:00
.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]