datavers.asm
资源名称:DOS系统的源代码.rar [点击查看]
上传用户:xiaoan1112
上传日期:2013-04-11
资源大小:19621k
文件大小:1k
源码类别:
操作系统开发
开发平台:
Visual C++
- ; ========================================================
- 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
- ; ========================================================