home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Simtel MSDOS 1992 September
/
Simtel20_Sept92.cdr
/
msdos
/
fossil
/
t2kcom52.arc
/
DOSCALL.ASM
< prev
next >
Wrap
Assembly Source File
|
1987-01-08
|
1KB
|
61 lines
;
; Copyright (C) 1987 Solar Wind Computing, ALL RIGHTS RESERVED
;
;
; Equates for MS/DOS interrupt calls
;
Dos equ 21h
DirConIO equ 06h
PutString equ 09h
SetVector equ 25h
GetVersion equ 30h
KeepProcess equ 31h
GetVector equ 35h
TermProcess equ 4ch
;
; Macros for MS/DOS interrupt calls
;
dir_con_io macro
mov ah,DirConIO
int Dos
endm
get_vector macro interrupt
;; Destroys ax, returns es:bx
mov al,interrupt
mov ah,GetVector
int Dos
endm
get_version macro
;; Destroys ax
mov ah,GetVersion
int Dos
endm
keep_process macro retcode
;; Destroys ax
mov al,retcode
mov ah,KeepProcess
int Dos
endm
put_string macro
mov ah,PutString
int Dos
endm
set_vector macro interrupt
;; Destroys ax
mov al,interrupt
mov ah,SetVector
int Dos
endm
term_process macro retcode
;; Destroys ax
mov al,retcode
mov ah,TermProcess
int Dos
endm