exit.s 340 B

12345678910
  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. .data
  6. .xdef __exit
  7. __exit:
  8. movea.l __save__sp__:l,%a7 |(NOT PC-relative because of programs >32 KB)
  9. rts