aboutsummaryrefslogtreecommitdiff
path: root/entries
diff options
context:
space:
mode:
Diffstat (limited to 'entries')
-rw-r--r--entries/nwoeanhinnogaehr/fib.asm12
1 files changed, 6 insertions, 6 deletions
diff --git a/entries/nwoeanhinnogaehr/fib.asm b/entries/nwoeanhinnogaehr/fib.asm
index 26ccf11..729958f 100644
--- a/entries/nwoeanhinnogaehr/fib.asm
+++ b/entries/nwoeanhinnogaehr/fib.asm
@@ -25,25 +25,25 @@ entry:
loop:
mov eax,esi
push 10
- pop ebp
- push ebp
- jmp format
+ mov ecx,esp
+ jmp skip
dw $20 ; e_phentsize
dw 1 ; e_phnum
+skip:
+ pop ebp
format:
cdq
div ebp
inc ebx
- dec esp
+ dec ecx
or edx,'0'
- mov [esp],dl
+ mov [ecx],dl
test eax,eax
jnz format
print:
mov al,4
- mov ecx,esp
mov edx,ebx
mov bl,1
int 0x80