asm_book/section_1/for/for05.s
2022-05-18 16:55:58 -05:00

21 lines
No EOL
249 B
ArmAsm

// Assume i is implemented using x0
mov x0, xzr
1: cmp x0, 10
bge 3f
// FIRST PART OF CODE BLOCK
// if (i == 5)
// continue
cmp x0, 5
beq 2f
// REMAINDER OF CODE BLOCK
2: add x0, x0, 1
b 1b
3: