home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Chip 1997 January
/
Chip_1997-01_cd.bin
/
sharewr
/
qpv
/
install.dat
/
DRVSRC
/
DRVSRC.ZIP
/
TRI8900.ASM
< prev
next >
Wrap
Assembly Source File
|
1995-03-31
|
690b
|
46 lines
;
; QPV/386 video driver
; for Trident 8900 and 9000 chipsets
;
.286
Code Segment Para 'Code'
Assume cs:Code
Org 100h
Procs dw Bank,Init,Exit,0
Bank: push ax
mov al,0eh
mov dx,03c4h
out dx,al
inc dx
pop ax
xor al,02h
out dx,al
retf
Init: mov dx,3ceh ; set pagesize to 64k
mov al,6
out dx,al
inc dl
in al,dx
dec dl
or al,4
mov ah,al
mov al,6
out dx,ax
mov dl,0c4h ; switch to BPS mode
mov al,0bh
out dx,al
inc dl
in al,dx
retf
Exit: retf
Code Ends
End Procs
; End of source.