_pipe.s 221 B

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