naloga_04 join

This commit is contained in:
Gašper Dobrovoljc 2023-12-03 20:45:11 +01:00
parent 26a5ada853
commit 609a89aa8f
No known key found for this signature in database
GPG Key ID: 0E7E037018CFA5A5

View File

@ -1,40 +1,44 @@
1. vaja
.text
.org 0x20
stev1: .word 0x00000001
stev2: .word 0x00000002
.org 0x20
stev1: .word 0x00000001
stev2: .word 0x00000002
.global _start
_start:
adr r0, stev1
ldrh r1, [r0]
ldrh r2, [r0, #4]
str r2, [r0]
str r1, [r0, #4]
adr r0, stev1
ldrh r1, [r0]
adr r0, stev2
ldrh r2, [r0]
adr r0, stev1
str r2, [r0]
adr r0, stev2
str r1, [r0]
2. vaja
.text
.org 0x20
tabela: .space 5
.org 0x20
tabela: .space 5
.align
.global _start
_start:
adr r0, tabela
mov r1, #0xffffffff
str r1, [r0]
strb r1, [r0, #4]
adr r0, tabela
mov r1, #0xffffffff
str r1, [r0]
strb r1, [r0, #4]
3. vaja