25 lines
254 B
ArmAsm
25 lines
254 B
ArmAsm
|
.text
|
||
|
.org 0x20
|
||
|
|
||
|
stev1: .word 0x12345678
|
||
|
stev2: .byte 128
|
||
|
.align
|
||
|
stev3: .hword 0xf123
|
||
|
.align
|
||
|
|
||
|
.global _start
|
||
|
_start:
|
||
|
|
||
|
adr r0, stev1
|
||
|
ldr r1, [r0]
|
||
|
|
||
|
adr r0, stev2
|
||
|
ldrb r2, [r0]
|
||
|
|
||
|
ldrsb r3, [r0]
|
||
|
|
||
|
adr r0, stev3
|
||
|
ldrh r4, [r0]
|
||
|
|
||
|
ldrsh r5, [r0]
|