_wait.s 220 B

1234567891011121314151617
  1. .define __wait
  2. .extern __wait
  3. .sect .text
  4. .sect .rom
  5. .sect .data
  6. .sect .bss
  7. .sect .text
  8. __wait: move.l #0x7,d0
  9. move.l 4(sp),a0
  10. trap #0
  11. bcs cerror
  12. tst.l 4(sp)
  13. beq 1f
  14. move.l 4(sp),a0
  15. move.l d1,(a0)
  16. 1:
  17. rts