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