Krolyxon
Auto
Light
Dark
Summary
Tree
Log
Refs
Find
Commit
deac6a4
Branches
master
Tags
v0.3.0
v0.2.0
Refs →
bench51
/
examples
/
loops.asm
13 lines · 210 B · x86_64 Assembly
Raw
Blame
History
Download
1
; move imm 3 to register b
2
mov
b
,
3
3
; move imm 1 to register a
4
mov
a
,
1
5
6
; delcare a label
7
loop
:
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
13
hlt