computing-systems-212 / Make & GDB Demo / files / smolfib.s
smolfib.s
Raw
    .equ SYS_exit, 93
    .text
    .global _start
_start:
    ldr x0, [sp]   // at entry, argc is on top of the stack
    sub x0, x0, 1  // but actually argc is 1 if there are no arguments
    bl fib
    mov x8, SYS_exit
    svc 0