mirror of
https://github.com/pkivolowitz/asm_book.git
synced 2026-06-21 04:46:47 +08:00
13 lines
No EOL
162 B
ArmAsm
13 lines
No EOL
162 B
ArmAsm
// Assume i is implemented using x0
|
|
|
|
mov x0, xzr
|
|
b 2f
|
|
|
|
1:
|
|
|
|
// CODE BLOCK
|
|
|
|
add x0, x0, 1
|
|
2: cmp x0, 10
|
|
blt 1b
|
|
|