home *** CD-ROM | disk | FTP | other *** search
/ DP Tool Club 12 / CD_ASCQ_12_0294.iso / maj / 4383 / svga1024.asm < prev    next >
Assembly Source File  |  1994-01-01  |  1KB  |  74 lines

  1.  
  2.     include model.inc
  3.     include    vesa.inc
  4.  
  5. ;
  6. ;    VGAKIT Version 6.0
  7. ;
  8. ;    Copyright 1988,89,90,91,92,93,94 John Bridges
  9. ;    Free for use in commercial, shareware or freeware applications
  10. ;
  11. ;    SVGA1024.ASM
  12. ;
  13. ;
  14. .data
  15.     extrn    cirrus:byte,everex:byte,paradise:byte,tseng:byte,trident:byte
  16.     extrn    t8900:byte,ativga:byte,aheada:byte,aheadb:byte
  17.     extrn    oaktech:byte,video7:byte,chipstech:byte,tseng4:byte,genoa:byte
  18.     extrn    ncr:byte,compaq:byte,acumos:byte,vesa:byte
  19.  
  20.     extrn    maxx:word,maxy:word,scanline:word,ourseg:word
  21.  
  22. .code
  23.     public    svga1024
  24.     extrn    mkadrtbl:proc,txtmode:proc,setmany:proc,vesaset:proc
  25.  
  26. svga1024 proc            ;Set 1024x768x256 on most SVGA cards
  27.     mov    [ourseg],0a000h
  28.     mov    ax,1024
  29.     mov    [maxx],ax        ;default width to 640 for now
  30.     mov    [scanline],ax
  31.  
  32.     cmp    [vesa],0
  33.     jz    novs
  34.     mov    bx,105h
  35.     call    vesaset
  36.     jmp    godo2
  37. novs:    cmp    [oaktech],0
  38.     jz    noak
  39.     mov    ax,59h
  40.     jmp    short godo
  41. noak:    cmp    [video7],0
  42.     jz    nov7
  43.     mov    ax,6f05h
  44.     mov    bl,6ah
  45.     jmp    short godo
  46. nov7:    cmp    [tseng4],0
  47.     jz    not4
  48.     mov    ax,38h
  49.     jmp    short godo
  50. not4:    cmp    [acumos],0
  51.     jz    noacu
  52.     mov    ax,60h
  53.     jmp    short godo
  54. noacu:    cmp    [ativga],0
  55.     jz    noati
  56.     mov    ax,64h
  57.     jmp    short godo
  58. noati:    cmp    [t8900],0
  59.     jz    notr
  60.     mov    ax,62h
  61. godo:    int    10h
  62. godo2:    mov    ax,40h
  63.     mov    es,ax
  64.     mov    al,es:[84h]        ;get height of screen
  65.     inc    al
  66.     mul    byte ptr es:[85h]
  67.     mov    [maxy],ax
  68.     call    mkadrtbl
  69. notr:    ret
  70. svga1024 endp
  71.  
  72.     end
  73.  
  74.