wait.s 205 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