home *** CD-ROM | disk | FTP | other *** search
/ Shareware Compilation 6 / SharewareCD_06.zip / pcspace / tseng3l.asm < prev    next >
Assembly Source File  |  1993-10-05  |  2KB  |  63 lines

  1.  
  2. ;Pcspace-screen driver ET3000- 16colors
  3. ;
  4. ;To create a tseng3l.drv:
  5. ; tasm tseng3l
  6. ; tlink tseng3l
  7. ; exe2bin tseng3l
  8. ; ren tseng3l.bin tseng3l.drv
  9. ;
  10. ; Attention: Maximum length of the drv file: 256 Bytes
  11.  
  12. prog  segment para 'code'
  13.  assume cs:prog
  14.  assume ds:prog
  15.  assume ss:prog
  16.  assume es:prog
  17.  
  18. start  proc  far
  19.        ; Initialize entry point for video mode
  20.        jmp short init
  21.  
  22.        ; Set the entry point 64k bank and set the segment address to es
  23.        ; The bank number has been set in al.
  24.        jmp short bank
  25.  
  26.      ;parameter for the driver
  27.        db 15 ;number of the colors-1
  28.        ;Table of parameters for initialization
  29.        db 12h ;Mode 0: resolution 640*480
  30.        db 29h ;Mode 1: resolution 800*600
  31.        db 37h ;Mode 2: resolution 1024*768
  32.        db -1  ;Mode 3: resolution 1280*960 (no such resolution)
  33.        db -1  ;Mode 4: resolution 1280*1024 (no such resolution)
  34.  
  35.        db "Tseng ET3000 16colors" ;Identification text for SETUP
  36.        db 0                       ;length can be adjustable
  37.  
  38.      ;Initialize video mode
  39.      ;Used registers: ax,bx
  40.      ;al has been set to the value of the parameter table
  41.      ;No such resolution (Par.-1) has been captured already.
  42.   init:xor   ah,ah
  43.        int   10h
  44.        retf
  45.  
  46.  
  47.      ;set video bank
  48.      ;Used registers: ax,dx,es
  49.  bank: mov   ah,0a0h
  50.        shl   al,4
  51.        or    ah,al
  52.        xor   al,al
  53.  
  54.        ;segmentadr. video memmory
  55.        mov   es,ax
  56.        retf
  57.  
  58.  
  59. start  endp
  60.  
  61. prog  ends
  62.  
  63.  end  start