summaryrefslogtreecommitdiff
path: root/miniasm/test6.asm
blob: 70802dc6fcad87bfbc54362f00e90745d2cc4b8d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
; test6 - loop

first:
	mov ax, 10
	mov bx, 0
loop:
	add bx, 1
	cmp ax, bx
	jne loop
; loop ten times, bx and ax must be 10 in the end
	
end:
	hlt