asm_book/section_1/for/for05.s
Perry Kivolowitz 4693db4ded some renaming
2022-06-07 15:42:56 -05:00

21 lines
No EOL
230 B
ArmAsm

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