Krolyxon
Commit 5d34df5

Branches

Tags

Refs →

bench51examplesloops.asm

13 lines · 210 B · x86_64 Assembly

1; move imm 3 to register b
2mov b, 3
3; move imm 1 to register a
4mov a, 1
5
6; delcare a label
7loop:
8 ; subtract a from b
9 sub b, a
10 ; jump to label "loop" until the zero flag is not set
11 jnz loop
12
13hlt