29 lines
251 B
ArmAsm
29 lines
251 B
ArmAsm
.text
|
|
.org 0x20
|
|
|
|
max1: .word 48000
|
|
max2: .word 24000000
|
|
|
|
.global _start
|
|
_start:
|
|
|
|
mov r1, #0
|
|
|
|
adr r0, max1
|
|
ldr r2, [r0]
|
|
|
|
adr r0, max2
|
|
ldr r3, [r0]
|
|
|
|
loop1:
|
|
loop2:
|
|
add r1, #1
|
|
cmp r1, r2
|
|
blt loop2
|
|
|
|
cmp r1, r3
|
|
blt loop1
|
|
|
|
_end:
|
|
b _end
|