syscall.s 177 B

12345678910111213
  1. .sect .text; .sect .rom; .sect .data; .sect .bss
  2. .sect .text
  3. .define _syscall
  4. _syscall:
  5. .data2 0x0000
  6. movl 4(ap),r0
  7. subl3 $1,(ap)+,(ap)
  8. chmk r0
  9. bcc 1f
  10. jmp cerror
  11. 1:
  12. ret