dos_compilers/Manx Aztec C86 v52a/LIB/DOS/BDOSX.ASM
2024-07-02 08:25:54 -07:00

25 lines
365 B
NASM

;Copyright (C) 1983 by Manx Software Systems
; :ts=8
include lmacros.h
procdef bdosx,<<func,word>,<dxval,word>,<dsval,word>,<cxval,word>>
push es
push ds
mov ax,func
test ah,ah
jnz valok
xchg ah,al
valok:
mov dx,dxval
mov cx,cxval
push dsval
pop ds
int 21H
mov dx,es
pop ds
pop es
and ax,0ffH
pret
pend bdosx
finish
end