summaryrefslogtreecommitdiff
path: root/main.asm
blob: f0b622162b2334364325a3a8e216e4fbeef81e7c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
global _start

section .text
_start:
	mov ebx, 1  ; start at 1
	mov ecx, 4  ; num iterations
label:
	add ebx, ebx  ; ebx += ebx 
	dec ecx       ; ecx -= 1
	cmp ecx, 0    ; compare ecx with 0 
	jg label      ; jump if greater than label