home *** CD-ROM | disk | FTP | other *** search
/ Jason Aller Floppy Collection / 67.img / VGAKIT34.ZIP / VGAKIT.DOC < prev    next >
Text File  |  1990-05-04  |  8KB  |  255 lines

  1. VGAKIT Version 3.4
  2.  
  3.  Hi, here is my latest SVGA/VGA info pack. I've included the .OBJ versions
  4. in case anyone who does not have an assembler wants to play with these routines.
  5.  
  6.  
  7.  The included modules are:
  8.  
  9.  
  10. EXAMPLE.C    is a silly C program which shows that this code works,
  11.         it just plots a nice calculated pattern using the
  12.         point functions.
  13.  
  14.  
  15. MKEXAMP.BAT    batch file to compile and link EXAMPLE.C into EXAMPLE.EXE
  16.         for Microsoft C 5.1
  17.  
  18. STICKS.C    is another silly C program which shows that this code works,
  19.         it uses the line function to draw a LOT of lines to make a 
  20.         very nice complex weave type pattern. Amazing how complex the
  21.         image gets from such a trivial program.
  22.  
  23.  
  24. MKSTICKS.BAT    batch file to compile and link STICKS.C into STICKS.EXE
  25.         for Microsoft C 5.1
  26.  
  27.  
  28. BANKS.ASM    SVGA bank switch code, used to address the beyond 64k
  29.         addressing sceams of the various SVGA chipsets. Also
  30.         includes a global variable "curbk" which is the current
  31.         hardware bank number which can be checked before each
  32.         bank switch to prevent the extra overhead of switching
  33.         into a currently selected bank. An example of this is
  34.         in the point routine in POINT.ASM which only switches
  35.         memory banks when required.
  36.                  BANKS.ASM includes the global variables ativga,tseng, tseng4
  37.         trident,video7,everex,paradise,chipstech, aheada, aheadb,
  38.         oaktech and vga512. These variables are set by the WHICHVGA()
  39.         function which must be called at program startup time to
  40.         determine which SVGA (if any) you have installed. This
  41.         function returns a 1 (true) if you have a SVGA card installed.
  42.         
  43.  
  44. MODE13X.ASM    Is the function to setup the non-standard (ie: not supported
  45.         by the BIOS) 360x480x256 mode, this mode works on virtually
  46.         VGA that is fully IBM compatable. It's a great mode for
  47.         those without SVGA capabilities.
  48.  
  49. SVGAMODE.ASM    Is a limited function which sets up 640x480x256 color
  50.         mode on a SVGA, it uses the global chipset flags to
  51.         determine the BIOS mode number.
  52.  
  53. POINT.ASM    Is a pair of simple point plotting functions,
  54.  
  55.           point(xpos,ypos,color)
  56.  
  57.         which plots a point at x,y coorinates xpos,ypos in SVGA
  58.         modes calling newbank() in BANKS.ASM to switch memory
  59.         banks when necessary.
  60.  
  61.           point13x(xpos,ypos,color)
  62.  
  63.         which plots a point at x,y coorinates xpos,ypos in 360x480
  64.         mode.  Both point functions will clip at screen boundries
  65.         correctly.
  66.  
  67.  
  68. XPOINT.ASM    Is just like POINT.ASM except that it's point functions draw
  69.         the points XOR'd to the screen.
  70.  
  71.           xpoint(xpos,ypos,color)
  72.           xpoint13x(xpos,ypos,color)
  73.  
  74.  
  75. RDPOINT.ASM    Is just like POINT.ASM except that instead of plotting points
  76.         it reads the color of screen pixel.
  77.  
  78.           color=rdpoint(xpos,ypos)
  79.           color=rdpoint13x(xpos,ypos)
  80.  
  81. LINE.ASM    Is a line plotting function callable from C, you pass it the
  82.         coordinates for the two end points of the line, the color to
  83.         draw the line in and the function to call to plot each point.
  84.  
  85.           bline(x1,y1,x2,y2,color,xpoint);
  86.  
  87.  
  88. here is a list of VGA Chipset producers and their BIOS mode numbers:
  89.  
  90. ===============================================================================
  91.  
  92. AHEAD
  93. -----
  94.         width        height        colors        Direct Mode
  95.         -----        ------        ------        -----------
  96. 0x6A          800           600            16             Q
  97. 0x71          800           600            16             Q
  98. 0x74         1024           768            16             V
  99. 0x60          640           400           256             R
  100. 0x61          640           480           256               S
  101. 0x62          800           600           256               T
  102.  
  103. AX=MODE
  104.  
  105. ===============================================================================
  106.  
  107. ATI
  108. ---
  109.         width        height        colors        Direct Mode
  110.         -----        ------        ------        -----------
  111. 0x54          800           600            16             Q
  112. 0x65         1024           768            16             V
  113. 0x61          640           400           256             R
  114. 0x62          640           480           256               S
  115. 0x63          800           600           256               T
  116.  
  117. AX=MODE
  118.  
  119. ===============================================================================
  120.  
  121. CHIPS & TECH
  122. ------------
  123.         width        height        colors        Direct Mode
  124.         -----        ------        ------        -----------
  125. 0x70          800           600            16             Q
  126. 0x72         1024           768            16             V
  127. 0x78          640           400           256             R
  128. 0x79          640           480           256               S
  129. 0x7b          800           600           256               T
  130.  
  131. AX=MODE
  132.  
  133. ===============================================================================
  134.  
  135. EVEREX
  136. ------
  137.         width        height        colors        Direct Mode
  138.         -----        ------        ------        -----------
  139. 0x01          752           410            16
  140. 0x02          800           600            16             Q
  141. 0x11         1280           350             4
  142. 0x12         1280           600             4
  143. 0x13          640           350           256
  144. 0x14          640           400           256             R
  145. 0x15          512           480           256
  146. 0x20         1024           768            16             V
  147. 0x30          640           480           256             S
  148. 0x31          800           600           256             T
  149.  
  150. AX=0x70 BL=MODE
  151.  
  152. ===============================================================================
  153.  
  154. OAK TECH
  155. --------
  156.         width        height        colors        Direct Mode
  157.         -----        ------        ------        -----------
  158. 0x52          800           600            16             Q
  159. 0x53          640           480           256               S
  160. 0x54          800           600           256               T
  161. 0x56         1024           768            16             V
  162.  
  163. AX=MODE
  164.  
  165. ===============================================================================
  166.  
  167. PARADISE
  168. --------
  169.         width        height        colors        Direct Mode
  170.         -----        ------        ------        -----------
  171. 0x59          800           600             2             P
  172. 0x58          800           600            16             Q
  173. 0x5e          640           400           256             R
  174. 0x5f          640           480           256               S
  175. 0x5d         1024           768            16             V
  176.  
  177. AX=MODE
  178.  
  179. ===============================================================================
  180.  
  181. TRIDENT
  182. -------
  183.         width        height        colors        Direct Mode
  184.         -----        ------        ------        -----------
  185. 0x5b          800           600            16             Q
  186. 0x5f         1024           768            16             V
  187. 0x5c          640           400           256             R
  188. 0x5d          640           480           256               S
  189. 0x5e          800           600           256               T
  190.  
  191. AX=MODE
  192.  
  193. ===============================================================================
  194.  
  195. TSENG  (Genoa, Orchid, Willow)
  196. -----
  197.         width        height        colors        Direct Mode
  198.         -----        ------        ------        -----------
  199. 0x29          800           600            16             Q
  200. 0x37         1024           768            16             V
  201. 0x2d          640           350           256             R
  202. 0x2e          640           480           256               S
  203. 0x2f          720           512           256
  204. 0x30          800           600           256               T
  205. 0x38         1024           768           256               X
  206.  
  207. AX=MODE
  208.  
  209. ===============================================================================
  210.  
  211. TSENG 4000
  212. ----------
  213.         width        height        colors        Direct Mode
  214.         -----        ------        ------        -----------
  215. 0x29          800           600            16             Q
  216. 0x37         1024           768            16             V
  217. 0x2d          640           350           256
  218. 0x2f          640           400           256             R
  219. 0x2e          640           480           256               S
  220. 0x30          800           600           256               T
  221. 0x38         1024           768           256               X
  222.  
  223. AX=MODE
  224.  
  225. ===============================================================================
  226.  
  227. VIDEO7
  228. ------
  229.         width        height        colors        Direct Mode
  230.         -----        ------        ------        -----------
  231. 0x60          752           410            16
  232. 0x61          720           540            16
  233. 0x62          800           600            16             Q
  234. 0x63         1024           768             2             U
  235. 0x64         1024           768             4
  236. 0x65         1024           768            16             V
  237. 0x66          640           400           256             R
  238. 0x67          640           480           256               S
  239. 0x68          720           540           256
  240. 0x69          800           600           256               T
  241.  
  242. AX=0x6f05 BL=MODE
  243.  
  244. ===============================================================================
  245.  
  246.  
  247.  
  248. John Bridges  5/4/1990
  249.  
  250. CIS:73307,606
  251. GENIE:J.BRIDGES
  252.  
  253.  
  254.  
  255.