dos.inc

来自「汇编源代码大全」· INC 代码 · 共 64 行

INC
64
字号
.xlist
;DOS.INC
.sall

;Standard handles

STDOUT	=	1


;MS-DOS functions

OldTerminate	=	0
OutChar		=	2
InCharNoEcho	=	8
Print		=	9
InputLine	=	10
GetCurDisk	=	25
SetVect		=	37
ParseName	=	41
Version		=	48
TermStayRes	=	49
GetVect		=	53
CreateFile	=	60
OpenFile	=	61
CloseFile	=	62
ReadFile	=	63
WriteFile	=	64
Seek		=	66
GetCurDir	=	71
AllocMem	=	72
ReleaseMem	=	73
ResizeMem	=	74
Exec		=	75
Terminate	=	76
GetReturnCode	=	77
SetPSP		=	80
GetPSP		=	98


;MS-DOS function macros

DOS	macro	Func,SubFunc,DxVal,BxVal,CxVal
	IFNB	<CxVal>
	mov	cx,CxVal
	ENDIF
	IFNB	<BxVal>
	mov	bx,BxVal
	ENDIF
	IFNB	<DxVal>
	mov	dx,DxVal
	ENDIF
	IFB	<SubFunc>
	IFNB	<Func>
	mov	ah,Func
	ENDIF
	ELSE
	mov	ax,Func*100H+SubFunc
	ENDIF

	int	33
	ENDM

.list

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?