From 609a89aa8f6d5288b8f6dfaa96a0705d689a4de1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ga=C5=A1per=20Dobrovoljc?= Date: Sun, 3 Dec 2023 20:45:11 +0100 Subject: [PATCH] naloga_04 join --- naloga_04/naloga_04.txt | 46 ++++++++++++++++++++++------------------- 1 file changed, 25 insertions(+), 21 deletions(-) diff --git a/naloga_04/naloga_04.txt b/naloga_04/naloga_04.txt index 8d57d75..99dd78a 100644 --- a/naloga_04/naloga_04.txt +++ b/naloga_04/naloga_04.txt @@ -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