home *** CD-ROM | disk | FTP | other *** search
/ DOS/V Power Report 1997 March / VPR9703A.ISO / OLS / DOS / Qpv17c / INSTALL.DAT / DRVSRC / DRVSRC.ZIP / ATI2.ASM < prev    next >
Assembly Source File  |  1995-03-31  |  937b  |  50 lines

  1. ;
  2. ; QPV/386 video driver
  3. ; for ATI chipsets
  4. ;
  5. ; Note:  If this driver doesn't work, try  ATI1.DRV  or  ATI3.DRV  instead.
  6. ;
  7.  
  8.         .286
  9. Code    Segment Para 'Code'
  10.         Assume  cs:Code
  11.         Org 100h
  12.  
  13. Procs   dw      Bank,Init,Exit,0
  14.  
  15. Bank:   shl     al,1
  16.         push    ax
  17.         mov     dx,cs:ExtReg
  18.         mov     al,0b2h
  19.         out     dx,al
  20.         inc     dx
  21.         in      al,dx
  22.         pop     dx
  23.         and     al,0e1h
  24.         or      al,dl
  25.         mov     dx,cs:ExtReg
  26.         inc     dx
  27.         out     dx,al
  28.         retf
  29.  
  30. ExtReg  dw      ?
  31.  
  32. Init:   mov     ax,0c000h
  33.         mov     es,ax
  34.         mov     dx,es:[0010h]
  35.         mov     cs:ExtReg,dx
  36.         mov     al,0beh
  37.         out     dx,al
  38.         inc     dx
  39.         in      al,dx
  40.         and     al,11110111b
  41.         out     dx,al
  42.         retf
  43.  
  44. Exit:   retf
  45.  
  46. Code    Ends
  47.         End Procs
  48.  
  49. ; End of source.
  50.