_wait.s 208 B

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