home *** CD-ROM | disk | FTP | other *** search
/ Top Ten Mega Games 2 / TOP_TEN_Mega_Games_2.iso / SW / QPEG / DRVSRC / ATI1.ASM < prev    next >
Assembly Source File  |  1994-08-03  |  765b  |  43 lines

  1. ;
  2. ; QPEG video driver
  3. ; for ATI chipsets
  4. ;
  5. ; Note:  If this driver doesn't work, try  ATI2.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:   mov     dl,al
  16.         shl     al,4
  17.         or      al,dl
  18.         rol     al,1
  19.         push    ax
  20.         mov     dx,01ceh
  21.         mov     al,0b2h
  22.         out     dx,al
  23.         inc     dx
  24.         pop     ax
  25.         out     dx,al
  26.         retf
  27.  
  28. Init:   mov     dx,01ceh
  29.         mov     al,0beh
  30.         out     dx,al
  31.         inc     dx
  32.         in      al,dx
  33.         or      al,08h
  34.         out     dx,al
  35.         retf
  36.  
  37. Exit:   retf
  38.  
  39. Code    Ends
  40.         End Procs
  41.  
  42. ; End of source.
  43.