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