ack/mach/xenix3/libsys/locking.s

24 lines
287 B
ArmAsm
Raw Normal View History

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