home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
DP Tool Club 12
/
CD_ASCQ_12_0294.iso
/
maj
/
4383
/
svga1024.asm
< prev
next >
Wrap
Assembly Source File
|
1994-01-01
|
1KB
|
74 lines
include model.inc
include vesa.inc
;
; VGAKIT Version 6.0
;
; Copyright 1988,89,90,91,92,93,94 John Bridges
; Free for use in commercial, shareware or freeware applications
;
; SVGA1024.ASM
;
;
.data
extrn cirrus:byte,everex:byte,paradise:byte,tseng:byte,trident:byte
extrn t8900:byte,ativga:byte,aheada:byte,aheadb:byte
extrn oaktech:byte,video7:byte,chipstech:byte,tseng4:byte,genoa:byte
extrn ncr:byte,compaq:byte,acumos:byte,vesa:byte
extrn maxx:word,maxy:word,scanline:word,ourseg:word
.code
public svga1024
extrn mkadrtbl:proc,txtmode:proc,setmany:proc,vesaset:proc
svga1024 proc ;Set 1024x768x256 on most SVGA cards
mov [ourseg],0a000h
mov ax,1024
mov [maxx],ax ;default width to 640 for now
mov [scanline],ax
cmp [vesa],0
jz novs
mov bx,105h
call vesaset
jmp godo2
novs: cmp [oaktech],0
jz noak
mov ax,59h
jmp short godo
noak: cmp [video7],0
jz nov7
mov ax,6f05h
mov bl,6ah
jmp short godo
nov7: cmp [tseng4],0
jz not4
mov ax,38h
jmp short godo
not4: cmp [acumos],0
jz noacu
mov ax,60h
jmp short godo
noacu: cmp [ativga],0
jz noati
mov ax,64h
jmp short godo
noati: cmp [t8900],0
jz notr
mov ax,62h
godo: int 10h
godo2: mov ax,40h
mov es,ax
mov al,es:[84h] ;get height of screen
inc al
mul byte ptr es:[85h]
mov [maxy],ax
call mkadrtbl
notr: ret
svga1024 endp
end