home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
QBasic & Borland Pascal & C
/
Delphi5.iso
/
C
/
Samples
/
C-ASM_VI.ARJ
/
PROGASM.ZIP
/
PROG021P.ASM
< prev
next >
Wrap
Assembly Source File
|
1988-04-16
|
429b
|
17 lines
;************************************************************************
; Get current video mode from segment zero *
;************************************************************************
PUBLIC Get_Mode
Get_Mode PROC FAR
PUSH ES ;Point ES to segment 0
XOR AX,AX
MOV ES,AX
MOV AL,ES:[BIOS_Mode] ;Fetch current video mode
XOR AH,AH ;Clear rest of AX for return to C
POP ES
RET
Get_Mode ENDP