wait.s 219 B

123456789101112131415
  1. #include "syscall.h"
  2. .sect .text; .sect .rom; .sect .data; .sect .bss; .sect .text
  3. .define _wait
  4. _wait:
  5. pea (SYS_wait)
  6. trap #0
  7. bcs 1f
  8. tst.l (4,sp)
  9. beq 2f
  10. move.l (4,sp),a0
  11. move.l d1,(a0)
  12. 2:
  13. rts
  14. 1:
  15. jmp (cerror)