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 1. vaja
.text .text
.org 0x20 .org 0x20
stev1: .word 0x00000001 stev1: .word 0x00000001
stev2: .word 0x00000002 stev2: .word 0x00000002
.global _start .global _start
_start: _start:
adr r0, stev1 adr r0, stev1
ldrh r1, [r0]
ldrh r1, [r0] adr r0, stev2
ldrh r2, [r0, #4] ldrh r2, [r0]
str r2, [r0] adr r0, stev1
str r1, [r0, #4] str r2, [r0]
adr r0, stev2
str r1, [r0]
2. vaja 2. vaja
.text .text
.org 0x20 .org 0x20
tabela: .space 5 tabela: .space 5
.align .align
.global _start .global _start
_start: _start:
adr r0, tabela adr r0, tabela
mov r1, #0xffffffff mov r1, #0xffffffff
str r1, [r0] str r1, [r0]
strb r1, [r0, #4] strb r1, [r0, #4]
3. vaja 3. vaja