mirror of
https://github.com/pkivolowitz/asm_book.git
synced 2026-06-21 05:36:48 +08:00
20 lines
No EOL
250 B
ArmAsm
20 lines
No EOL
250 B
ArmAsm
// Assume i is implemented using x0
|
|
|
|
mov x0, xzr
|
|
b 3f
|
|
|
|
1:
|
|
|
|
// FIRST PART OF CODE BLOCK
|
|
|
|
// if (i == 5)
|
|
// continue
|
|
|
|
cmp x0, 5
|
|
beq 2f
|
|
|
|
// REMAINDER OF CODE BLOCK
|
|
|
|
2: add x0, x0, 1
|
|
3: cmp x0, 10
|
|
blt 1b |