35 lines
456 B
ArmAsm
35 lines
456 B
ArmAsm
|
.text
|
||
|
.org 0x20
|
||
|
|
||
|
tabela: .space 6
|
||
|
|
||
|
.align
|
||
|
|
||
|
.global _start
|
||
|
_start:
|
||
|
|
||
|
adr r0, tabela
|
||
|
|
||
|
ldr r1, =0x04030201
|
||
|
str r1, [r0]
|
||
|
|
||
|
ldrh r1, =0x0605
|
||
|
str r1, [r0, #4]
|
||
|
|
||
|
@ zamenjaj 1. <-> 6.
|
||
|
ldrb r1, [r0]
|
||
|
ldrb r2, [r0, #5]
|
||
|
strb r2, [r0]
|
||
|
strb r1, [r0, #5]
|
||
|
|
||
|
@ zamenjaj 2. <-> 5.
|
||
|
ldrb r1, [r0, #1]
|
||
|
ldrb r2, [r0, #4]
|
||
|
strb r2, [r0, #1]
|
||
|
strb r1, [r0, #4]
|
||
|
|
||
|
@ zamenjaj 3. <-> 4.
|
||
|
ldrb r1, [r0, #2]
|
||
|
ldrb r2, [r0, #3]
|
||
|
strb r2, [r0, #2]
|
||
|
strb r1, [r0, #3]
|