exit.s 424 B

12345678910111213
  1. |exit function copyright (C) 2002, Kevin Kofler
  2. |requires new exit support (__save__sp__)
  3. |Thanks to Patrick Pélissier for the code. I have just changed it from a patch
  4. |to an archive function, so it won't be there when not needed.
  5. .xdef __exit
  6. | This file requires the startup exit support.
  7. .xdef __ref_all___save_all_registers_main
  8. __exit:
  9. movea.l __save__sp__,%a7 |(NOT PC-relative because of programs >32 KB)
  10. rts