crt0.s 381 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768
  1. # 1 "crt0.S"
  2. .global _start
  3. .global __main
  4. .global _end
  5. .bss
  6. .global environ
  7. environ:
  8. .long 0
  9. .text
  10. _start:
  11. nop
  12. nop
  13. movea.l %d5, %a5
  14. lea __bss_start(%a5), %a0
  15. lea end(%a5), %a1
  16. move.l 8(%sp), %d5
  17. move.l %d5, environ(%a5)
  18. bsr main
  19. move.l %d0,%sp@-
  20. bsr exit
  21. # 69 "crt0.S"
  22. .global _cleanup
  23. _cleanup:
  24. rts