forked from Adastra-thw/ExploitSerie
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathFibonacci.asm
More file actions
31 lines (28 loc) · 782 Bytes
/
Copy pathFibonacci.asm
File metadata and controls
31 lines (28 loc) · 782 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
global _main
extern _printf
section .text
_main:
push ebx
mov ecx, 40
xor eax, eax
xor ebx, ebx
inc ebx
print:
push eax
push ecx
push eax
push format
call _printf
add esp, 8
pop ecx
pop eax
mov edx, eax
mov eax, ebx
add ebx, edx
dec ecx
jnz print
pop ebx
ret
section .data
format:
db '%10d', 0