home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
QBasic & Borland Pascal & C
/
Delphi5.iso
/
C
/
Samples
/
C-ASM_VI.ARJ
/
PROGASM.ZIP
/
PROG021.ASM
< prev
next >
Wrap
Assembly Source File
|
1988-04-10
|
593b
|
17 lines
;************************************************************************
; Get current video mode from segment zero *
;************************************************************************
PUBLIC _Get_Mode
_Get_Mode PROC NEAR
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