dos_compilers/Manx Aztec C86 v52a/LIB/DOS/BDOSX.ASM

25 lines
365 B
NASM
Raw Permalink Normal View History

2024-07-02 17:25:54 +02:00
;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