home *** CD-ROM | disk | FTP | other *** search
/ Current Shareware 1994 January / SHAR194.ISO / viewers / qpeg10c.zip / ATI.ASM < prev    next >
Assembly Source File  |  1993-10-22  |  854b  |  48 lines

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