_fork.s 192 B

1234567891011121314
  1. #include "syscall.h"
  2. .sect .text; .sect .rom; .sect .data; .sect .bss; .sect .text
  3. .define __fork
  4. __fork:
  5. pea (SYS_fork)
  6. trap #0
  7. bcs 1f
  8. tst.l d1
  9. beq 2f
  10. clr.l d0
  11. 2:
  12. rts
  13. 1:
  14. jmp (cerror)