home *** CD-ROM | disk | FTP | other *** search
- TITLE HDWEELVL
- ; HDWEELVL.ASM 07-17-88
- ; This program is in the public domain.
- ; Reads ROM BIOS data, and sets errorlevel
- ; to value of hardware byte: i.e.,
- ; 255 = 8088 Original PC
- ; 253 = 80286 AT or PS/2 M 50/60
- ; 248 = 80386 PS/2 M 80 etc.
- ;
- DOSSEG
- .MODEL small
- .STACK 100H
- ;
- Cseg Segment Para Public 'CODE'
- Assume CS:Cseg,DS:Cseg,ES:Nothing
- Main: PUSH DS
- MOV DX, 0f000h ; ROM BIOS segment
- MOV DS, DX
- MOV BX, 0fffeh ; Point to hardware byte
- MOV AL, BYTE PTR [BX] ; Get hardware byte into AL
- MOV AH, 04CH ; With errorlevel
- INT 21h ; Terminate setting errorlevel from AL
- RET
- ;
- end Main
- ;
-
- ;
- end