ack/mach/xenix3/libsys/ptrace.s

24 lines
289 B
ArmAsm
Raw Permalink Normal View History

1987-10-06 16:39:14 +00:00
.sect .text; .sect .rom; .sect .data; .sect .bss
.define _ptrace
.sect .text
_ptrace:
mov ax,26
push bp
mov bp,sp
push si
push di
mov di,4(bp)
mov si,8(bp)
mov cx,6(bp)
mov bx,10(bp)
mov (_errno),0
call syscal
jae 1f
mov (_errno),ax
mov ax,-1
1:
pop di
pop si
pop bp
ret