1990-01-11 16:00:19 +00:00
|
|
|
.sect .text; .sect .rom; .sect .data; .sect .bss
|
|
|
|
.sect .text
|
|
|
|
.define _syscall
|
1987-02-02 16:06:51 +00:00
|
|
|
|
|
|
|
_syscall:
|
1990-01-11 16:00:19 +00:00
|
|
|
.data2 0x0000
|
1987-02-02 16:06:51 +00:00
|
|
|
movl 4(ap),r0
|
|
|
|
subl3 $1,(ap)+,(ap)
|
|
|
|
chmk r0
|
1990-01-11 16:00:19 +00:00
|
|
|
bcc 1f
|
1987-02-02 16:06:51 +00:00
|
|
|
jmp cerror
|
1990-01-11 16:00:19 +00:00
|
|
|
1:
|
1987-02-02 16:06:51 +00:00
|
|
|
ret
|