wait3.s 265 B

123456789101112131415161718
  1. #include "syscall.h"
  2. .sect .text; .sect .rom; .sect .data; .sect .bss; .sect .text
  3. .define _wait3
  4. _wait3:
  5. move.l 8(sp),d0
  6. move.l 12(sp),d1
  7. pea SYS_wait
  8. or.b #0x1f,ccr
  9. trap #0
  10. bcc 1f
  11. jmp cerror
  12. 1:
  13. tst.l 4(sp)
  14. beq 1f
  15. move.l 4(sp),a0
  16. move.l d1,(a0)
  17. 1:
  18. rts