home *** CD-ROM | disk | FTP | other *** search
/ Top Ten Mega Games 2 / TOP_TEN_Mega_Games_2.iso / SW / QPEG / DRVSRC / ATI3.ASM < prev    next >
Assembly Source File  |  1994-05-01  |  1KB  |  58 lines

  1. ;
  2. ; QPEG video driver
  3. ; for ATI chipsets
  4. ;
  5. ; Modified to work on ATI VGA WONDER 18800 12/12/93 Yaron Keren
  6.  
  7.         .286
  8. Code    Segment Para 'Code'
  9.         Assume  cs:Code
  10.         Org 100h
  11.  
  12. Procs   dw      Bank,Init,Exit,0
  13.  
  14. Bank:   shl     al,1
  15.         push    ax
  16.         mov     dx,cs:ExtReg
  17.         mov     al,0b2h
  18.         out     dx,al
  19.         inc     dx
  20.         in      al,dx
  21.         pop     dx
  22.         and     al,0e1h
  23.         or      al,dl
  24. ; 2 lines added
  25.         mov     ah,al
  26.         mov     al,0b2h
  27.  
  28.         mov     dx,cs:ExtReg
  29.  
  30. ; 1 line removed
  31. ;        inc     dx
  32.  
  33. ; 1 line changed
  34.         out     dx,ax
  35.  
  36.         retf
  37.  
  38. ExtReg  dw      ?
  39.  
  40. Init:   mov     ax,0c000h
  41.         mov     es,ax
  42.         mov     dx,es:[0010h]
  43.         mov     cs:ExtReg,dx
  44.         mov     al,0beh
  45.         out     dx,al
  46.         inc     dx
  47.         in      al,dx
  48.         and     al,11110111b
  49.         out     dx,al
  50.         retf
  51.  
  52. Exit:   retf
  53.  
  54. Code    Ends
  55.         End Procs
  56.  
  57. ; End of source.
  58.