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

  1. ;
  2. ; QPEG video driver
  3. ; for Tseng Labs ET4000-W32 chipsets,
  4. ; supports up to 4 Mb of video memory.
  5. ; Thanks to German c't Magazine for the info.
  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:   push    ax
  16.         and     al,0fh  ; bit 0-3
  17.         mov     dl,al
  18.         shl     al,4
  19.         or      al,dl
  20.         mov     dx,03cdh
  21.         out     dx,al
  22.         pop     ax
  23.         and     al,0f0h ; bit 4-5
  24.         mov     dl,al
  25.         shr     al,4
  26.         or      al,dl
  27.         mov     dx,03cbh
  28.         out     dx,al
  29.         retf
  30.  
  31. Init:   retf
  32.  
  33. Exit:   retf
  34.  
  35. Code    Ends
  36.         End Procs
  37.  
  38. ; End of source.
  39.