datavers.asm

来自「[随书类]Dos6.0源代码」· 汇编 代码 · 共 47 行

ASM
47
字号
; ========================================================

COMMENT #

	DATAVERS.ASM

	Copyright (c) 1991 - Microsoft Corp.
	All rights reserved.
	Microsoft Confidential

	johnhe - 03/03/89

END COMMENT #

;========================================================

include BIOS_IO.INC
include	MODEL.INC


.CODE

; ========================================================
;
; Returns the DOS Data version from DOSDATA:04h
;
; int	GetDosDataVersion( void );
;
; ========================================================

GetDosDataVersion PROC USES ES

	mov	AH,34h			; DOS get critical flag address
	int	21h
	mov	BX,4			; Put address of DATA version in BX
	mov	AL,ES:[BX]		; Get DATA version byte
	cbw				; Convert AL to an integer
	ret

GetDosDataVersion ENDP	

; ========================================================

	END

; ========================================================

⌨️ 快捷键说明

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