diff options
author | Noah Weninger | 2022-10-27 20:49:27 +0000 |
---|---|---|
committer | GitHub | 2022-10-27 20:49:27 +0000 |
commit | 13e755b6ead4c3f36f708e0213e23e84cb0cc545 (patch) | |
tree | 16b45ec1c50ed3888e69884fc0664f2a56f4db7c /entries | |
parent | eea4d18a2ef4cfe4e5f4d4a302b6ef452dec18b7 (diff) |
Save 2 bytes in fib.asm
Diffstat (limited to 'entries')
-rw-r--r-- | entries/nwoeanhinnogaehr/fib.asm | 12 |
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 |