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

  1. ;
  2. ; QPEG video driver
  3. ; for VGA graphics cards based on Ahead-B chipsets.
  4. ; Should work with Ahead-B _only_.
  5. ; Provided by Guy Desrosiers.
  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.         push    cx
  17.     mov     ch,al
  18.     mov     dx,3ceh
  19.     mov     ax,200fh
  20.     out     dx,ax
  21.     mov     ah,ch
  22.     mov     cl,4
  23.     shl     ah,cl
  24.     or      ah,ch
  25.     mov     al,0dh
  26.     out     dx,ax
  27.     pop     cx
  28.         pop     ax
  29.     retf
  30.  
  31. Init:   retf
  32.  
  33. Exit:   retf
  34.  
  35. Code    Ends
  36.     End Procs
  37.