Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- .file "padovan.c"
- .text
- .globl padovan
- .type padovan, @function
- padovan:
- .LFB0:
- movl 4(%esp), %edx
- movl $0, %eax
- padovanL:
- .LFB2:
- cmpl $2, %edx
- jg .L5
- addl $1, %eax
- ret
- .L5:
- subl $2, %edx
- call padovanL
- subl $1, %edx
- call padovanL
- addl $3, %edx
- ret
- .LFE0:
- .size padovan, .-padovan
- .section .rodata
- .LC0:
- .string "padovan(%d) = %d \n"
- .align 4
- .LC1:
- .string "Formaat: %s waarde aantal_iteraties\n"
- .text
- .globl main
- .type main, @function
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement