_pipe.s 222 B

1234567891011121314
  1. #include "syscall.h"
  2. .sect .text; .sect .rom; .sect .data; .sect .bss; .sect .text
  3. .define __pipe
  4. __pipe:
  5. pea (SYS_pipe)
  6. trap #0
  7. bcs 1f
  8. move.l (4,sp),a0
  9. move.l d0,(a0)+
  10. move.l d1,(a0)
  11. clr.l d0
  12. rts
  13. 1:
  14. jmp (cerror)