.sect .text; .sect .rom; .sect .data; .sect .bss
.define sysal, sysn, sysnl, sysnx, sysc, syse, cerror, _errno
.sect .bss
.comm _errno, 2
.sect .text
sysal:
push bp
mov bp,sp
push di
push si
mov di,10(bp)
mov si,8(bp)
mov cx,6(bp)
mov bx,4(bp)
call syscal
mov dx,bx
pop si
pop di
pop bp
jb cerror
ret
syse:
mov bx,sp
add bx,2
cerror:
mov (_errno),ax
mov ax,-1
cwd
sysn:
sysnl:
sysnx:
xchg bx,ax
sysc:
xor ax,ax
cbw