Wydanie R2020.05.1

This commit is contained in:
Jan Potocki
2020-05-09 22:17:22 +02:00
parent 8f4d0e843f
commit 0ba84bef75
11 changed files with 339 additions and 0 deletions
+43
View File
@@ -0,0 +1,43 @@
# Jan Potocki 2020
.global fibb
# Segment kodu
.text
fibb:
push %ebp
mov %esp, %ebp
push %ebx
cmpl $0, 8(%ebp)
je zero
cmpl $1, 8(%ebp)
je jeden
movl 8(%ebp), %edx
dec %edx
push %edx
call fibb
pop %edx
mov %eax, %ebx
dec %edx
push %edx
call fibb
add $4, %esp
add %ebx, %eax
jmp wyjscie
zero:
mov $0, %eax
jmp wyjscie
jeden:
mov $1, %eax
wyjscie:
pop %ebx
pop %ebp
ret