home *** CD-ROM | disk | FTP | other *** search
/ CD Actual 15 / CDACTUAL15.iso / cdactual / program / pascal / PASLIBR.ZIP / CH7_1.DOC < prev    next >
Encoding:
Text File  |  1991-03-15  |  18.1 KB  |  762 lines

  1. ..pgno01
  2. ..foot60A7-##
  3. ..head02L-----------------------------------------------------------------
  4. ..head04L-----------------------------------------------------------------
  5. ..head03AbvCurEmulation
  6. ■ Display Adapters    [VGA]
  7.  
  8. ■ Source Module Name  b101234d.asm
  9.  
  10. ■ Description
  11.  
  12.   Enables or disables cursor emulation for the currently active
  13.   display. When cursor emulation is enabled, the ROM BIOS
  14.   automatically remaps INT 10H Function 01H cursor starting scan
  15.   and ending scan lines for the current character cell
  16.   dimensions.
  17.  
  18.  
  19. ■ Summary
  20.  
  21.   Function bvCurEmulation( setting : Integer ) : Integer;
  22.  
  23.   Parameter    Description
  24.   ---------    -------------------------------------------------
  25.   setting      0 - enables emulation
  26.                1 - disable emulation
  27.  
  28.  
  29. ■ Function Return Value
  30.  
  31.   12h - if function is supported.
  32. ..page
  33. ..head03AbvDefPalLoad
  34. ■ Display Adapters    [MCGA] [VGA]
  35.  
  36. ■ Source Module Name  b101231d.asm
  37.  
  38. ■ Description
  39.  
  40.   Enables or disables loading of a default palette when a video
  41.   display mode is selected.
  42.  
  43.  
  44. ■ Summary
  45.  
  46.   Function bvDefPalLoad( setting : Integer ) : Integer;
  47.  
  48.   Parameter    Description
  49.   ---------    -------------------------------------------------
  50.   setting      0 - enables default palette loading
  51.                1 - disable default palette loading
  52.  
  53.  
  54. ■ Function Return Value
  55.  
  56.   12h - if function is supported.
  57. ..page
  58. ..head03AbvGetBorder
  59. ■ Display Adapters    [VGA]
  60.  
  61. ■ Source Module Name  b101008d.asm
  62.  
  63. ■ Description
  64.  
  65.   Obtain current color of the border.
  66.  
  67.  
  68. ■ Summary
  69.  
  70.   Function bvGetBorder : Integer;
  71.  
  72.  
  73. ■ Function Return Value
  74.  
  75.   The attribute value of the border color.
  76. ..page
  77. ..head03AbvGetColorPgMode
  78. ■ Display Adapters    [VGA]
  79.  
  80. ■ Source Module Name  b10101ad.asm
  81.  
  82. ■ Description
  83.  
  84.   Gets paging mode for specified color registers and the current
  85.   color page.
  86.  
  87.  
  88. ■ Summary
  89.  
  90.   Procedure bvGetColorPgMode( Var colorpg, pgmode : Integer );
  91.  
  92.  
  93.   Parameter    Description
  94.   ---------    -------------------------------------------------
  95.   colorpg      color page to get information on
  96.   pgmode       00 - if 4 pages of 64 registers
  97.                01 - if 16 pages of 16 registers
  98.  
  99.  
  100. ■ See Also
  101.  
  102.   bvSetColorPgMode
  103. ..page
  104. ..head03AGetColorReg
  105. ■ Display Adapters    [MCGA] [VGA]
  106.  
  107. ■ Source Module Name  b101015d.asm
  108.  
  109. ■ Description
  110.  
  111.   Sets paging mode for color registers
  112.  
  113.  
  114. ■ Summary
  115.  
  116.   Procedure bvGetColorReg(     colorreg : Integer;
  117.                Var green    : Integer;
  118.                Var blue    : Integer;
  119.                Var red    : Integer );
  120.  
  121.  
  122.   Parameter    Description
  123.   ---------    -------------------------------------------------
  124.   colorreg     color register
  125.   green        green color value
  126.   blue         blue color value
  127.   red          red color value
  128. ..page
  129. ..head03AbvGetColorRegBlk
  130. ■ Display Adapters    [MCGA] [VGA]
  131.  
  132. ■ Source Module Name  b101017d.asm
  133.  
  134. ■ Description
  135.  
  136.   Reads the set of red, green and blue colors associated with
  137.   each set of color registers.
  138.  
  139.  
  140. ■ Summary
  141.  
  142.   Procedure bvGetColorRegBlk( startreg : Word;
  143.                   regcount : Integer;
  144.                   colortbl         );
  145.  
  146.  
  147.   Parameter    Description
  148.   ---------    -------------------------------------------------
  149.   startreg     first color register
  150.   regcount     number of registers
  151.   colortbl     color table consists of 3 bytes for each register.
  152.                Each group of 3 bytes will specify the red, green,
  153.                and blue values, respectively for the associated
  154.                register.
  155. ..page
  156. ..head03AbvGetConfigInfo
  157. ■ Display Adapters    [EGA] [VGA]
  158.  
  159. ■ Source Module Name  b101210d.asm
  160.  
  161. ■ Description
  162.  
  163.   Returns configuration information for the active video system.
  164.  
  165.  
  166. ■ Summary
  167.  
  168.   Procedure bvGetConfigInfo( Var dsptype : Integer;
  169.                  Var egamem  : Integer;
  170.                  Var fbits     : Integer;
  171.                  Var swset     : Integer );
  172.  
  173.  
  174.   Parameter    Description
  175.   ---------    -------------------------------------------------
  176.   dsptype      0 - color
  177.                1 - monochrome
  178.   egamem       0 - 64K
  179.                1 - 128K
  180.                2 - 192K
  181.                3 - 256K
  182.   fbits        feature bits
  183.   swset        switch setting
  184.  
  185.  
  186. ■ Remarks
  187.  
  188.   The feature bits are set from input status register zero in
  189.   response to an output on the specified feature control register
  190.   bits:
  191.  
  192.   Feature    Feature control    Input Status
  193.   Bit(s)     Output Bit         Bit
  194.   -------    ---------------    ------------
  195.     0              0                 5
  196.     1              0                 6
  197.     2              1                 5
  198.     3              1                 6
  199.     4-7        not used
  200.  
  201.   The bits in the switch settings byte indicate the state of the
  202.   EGA's configuration DIP switch (1=off, 0=on).
  203.  
  204.    Bit      Significance
  205.   -----     -----------------------
  206.    0        configuration switch 1
  207.    1        configuration switch 2
  208.    2        configuration switch 3
  209.    3        configuration switch 4
  210.    4-7      not used
  211. ..page
  212. ..head03AbvGetCurPos
  213. ■ Display Adapters    [MDA] [CGA] [PCjr] [EGA] [MCGA] [VGA]
  214.  
  215. ■ Source Module Name  b100300d.asm
  216.  
  217. ■ Description
  218.  
  219.   Returns the current position of the cusor on the display.
  220.  
  221.  
  222. ■ Summary
  223.  
  224.   Procedure bvGetCurPos(     pg  : Integer;
  225.              Var row : Integer;
  226.              Var col : Integer );
  227.  
  228.  
  229.   Parameter    Description
  230.   ---------    -------------------------------------------------
  231.   pg           page to get cursor position for
  232.   row          row (y coordinate)
  233.   col          col (x coordinate)
  234. ..page
  235. ..head03AbvGetCurType
  236. ■ Display Adapters    [MDA] [CGA] [PCjr] [EGA] [MCGA] [VGA]
  237.  
  238. ■ Source Module Name  b1003x0d.asm
  239.  
  240. ■ Description
  241.  
  242.   Returns starting and ending scan lines for the cursor in text
  243.   modes.
  244.  
  245.  
  246. ■ Summary
  247.  
  248.   Procedure bvGetCurType(     pg     : Integer;
  249.               Var stscan : Integer;
  250.               Var spscan : Integer );
  251.  
  252.   Parameter    Description
  253.   ---------    -------------------------------------------------
  254.   pg           page to get cursor position for
  255.   stscan       starting scan line for cursor
  256.   spscan       ending scan line for cursor
  257. ..page
  258. ..head03AbvGetFontInfo
  259. ■ Display Adapters    [EGA] [MCGA] [VGA]
  260.  
  261. ■ Source Module Name  b101130d.asm
  262.  
  263. ■ Description
  264.  
  265.   Returns a pointer to the character definition table for a font,
  266.   and the bytes per character and rows for that font.
  267.  
  268.  
  269. ■ Summary
  270.  
  271.   Procedure bvGetFontInfo(     fontcode : Integer;
  272.                Var points    : Word;
  273.                Var scnrows    : Integer;
  274.                Var fonttbl           );
  275.  
  276.  
  277.   Parameter    Description
  278.   ---------    -------------------------------------------------
  279.   fontcode     defines font table to retrieve information on
  280.   points       bytes per character
  281.   scnrows      rows per screen
  282.   fonttbl      address of font table requested
  283.  
  284.  
  285. ■ Remarks
  286.  
  287.   Font
  288.   Code   Description
  289.   ----   ----------------------------------------------
  290.    00    current Int 1FH contents
  291.    01    current Int 43H contents
  292.    02    ROM 8x14 font (EGA, VGA only)
  293.    03    ROM 8x8 font (characters 00H-7FH)
  294.    04    ROM 8x8 font (characters 80H-FFH)
  295.    05    ROM alternate 9x14 font (EGA, VGA only)
  296.    06    ROM 8x16 font (MCGA, VGA only)
  297.    07    ROM alternate 9x16 font (VGA only)
  298. ..page
  299. ..head03AbvGetMode
  300. ■ Display Adapters    [MDA] [CGA] [PCjr] [EGA] [MCGA] [VGA]
  301.  
  302. ■ Source Module Name  b100f00d.asm
  303.  
  304. ■ Description
  305.  
  306.   Return current display mode, active page and number of columns
  307.   for the active display page.
  308.  
  309.  
  310. ■ Summary
  311.  
  312.   Procedure bvGetMode( Var mode, cols, pg : Integer );
  313.  
  314.   Parameter    Description
  315.   ---------    -------------------------------------------------
  316.   mode        current display mode
  317.   cols        number of column on page
  318.   pg          active display page
  319. ..page
  320. ..head03AbvGetPalBorder
  321. ■ Display Adapters    [VGA]
  322.  
  323. ■ Source Module Name  b101009d.asm
  324.  
  325. ■ Description
  326.  
  327.   Obtain contents of all the palette registers and the color of
  328.   the border.
  329.  
  330.  
  331. ■ Summary
  332.  
  333.   Procedure bvGetPalBorder( buf : ByteArry17 );
  334.  
  335.  
  336.   Parameter    Description
  337.   ---------    -------------------------------------------------
  338.   buf          Bytes 00-0Fh will contain the pallete values.
  339.                Byte 10h will contains the border color.
  340. ..page
  341. ..head03AbvGetPalReg
  342. ■ Display Adapters    [VGA]
  343.  
  344. ■ Source Module Name  b101007d.asm
  345.  
  346. ■ Description
  347.  
  348.   Return the color associated with the specified register
  349.   palette.
  350.  
  351.  
  352. ■ Summary
  353.  
  354.   Function bvGetPalReg( reg : Integer ) : Integer;
  355.  
  356.   Parameter    Description
  357.   ---------    -------------------------------------------------
  358.   reg          return the color for this palette register.
  359.  
  360.  
  361. ■ Function Return Value
  362.  
  363.   Color for the specified palette register.
  364. ..page
  365. ..head03AbvGrayScaleSum
  366. ■ Display Adapters    [MCGA] [VGA]
  367.  
  368. ■ Source Module Name  b101233d.asm
  369.  
  370. ■ Description
  371.  
  372.   Enables or disables gray-scale summing for the currently active
  373.   display.
  374.  
  375.  
  376. ■ Summary
  377.  
  378.   Function bvGrayScaleSum( setting : Integer ) : Integer;
  379.  
  380.   Parameter    Description
  381.   ---------    -------------------------------------------------
  382.   setting      0 - enables access
  383.                1 - disable access
  384.  
  385.  
  386. ■ Function Return Value
  387.  
  388.   12h is returned if this function is supported.
  389. ..page
  390. ..head03AbvLoad8x14Font01
  391. ■ Display Adapters    [EGA] [VGA]
  392.  
  393. ■ Source Module Name  b101101d.asm
  394.  
  395. ■ Description
  396.  
  397.   Provides the default 8x14 font table in text modes.
  398.  
  399.  
  400. ■ Summary
  401.  
  402.   Procedure bvLoad8x14Font01( block : Integer );
  403.  
  404.   Parameter    Description
  405.   ---------    -------------------------------------------------
  406.   block        specifies the block of character generator RAM.
  407.                (0 or 1).
  408.  
  409.  
  410. ■ Remarks
  411.  
  412.   If this function is used on an MCGA then the BIOS will execute
  413.   the function bvLoad8x16Font04.
  414. ..page
  415. ..head03AbvLoad8x14Font11
  416. ■ Display Adapters    [EGA] [VGA]
  417.  
  418. ■ Source Module Name  b101101d.asm
  419.  
  420. ■ Description
  421.  
  422.   Provides the default 8x14 font table in text modes.
  423.  
  424.  
  425. ■ Summary
  426.  
  427.   Procedure bvLoad8x14Font11( block : Integer );
  428.  
  429.   Parameter    Description
  430.   ---------    -------------------------------------------------
  431.   block        specifies the block of character generator RAM.
  432.                (0 or 1).
  433.  
  434.  
  435. ■ Remarks
  436.  
  437.   Page zero must be active and if this function is used at any
  438.   other time than immediately after a set mode, the results will
  439.   be unpredictable.
  440.  
  441.   If this function is used on an MCGA then the BIOS will execute
  442.   the function bvLoad8x16Font04.
  443. ..page
  444. ..head03AbvLoad8x16Font04
  445. ■ Display Adapters    [MCGA] [VGA]
  446.  
  447. ■ Source Module Name  b101104d.asm
  448.  
  449. ■ Description
  450.  
  451.   Provides the default 8x16 font table in text modes.
  452.  
  453.  
  454. ■ Summary
  455.  
  456.   Procedure bvLoad8x16Font04( block : Integer );
  457.  
  458.   Parameter    Description
  459.   ---------    -------------------------------------------------
  460.   block        specifies the block of character generator RAM.
  461.  
  462.  
  463. ■ Remarks
  464.  
  465.   On a MCGA, a call to this function should be followed with a
  466.   call to bvSetBlkSpec.
  467. ..page
  468. ..head03AbvLoad8x16Font14
  469. ■ Display Adapters    [MCGA] [VGA]
  470.  
  471. ■ Source Module Name  b101104d.asm
  472.  
  473. ■ Description
  474.  
  475.   Provides the default 8x16 font table in text modes.
  476.  
  477.  
  478. ■ Summary
  479.  
  480.   Procedure bvLoad8x16Font14( block : Integer );
  481.  
  482.   Parameter    Description
  483.   ---------    -------------------------------------------------
  484.   block        specifies the block of character generator RAM.
  485.  
  486.  
  487. ■ Remarks
  488.  
  489.   Page zero must be active and if this function is used at any
  490.   other time than immediately after a set mode, the results will
  491.   be unpredictable.
  492.  
  493.   If this function is used on an MCGA then the BIOS will execute
  494.   the function bvLoad8x16Font04.
  495. ..page
  496. ..head03AbvLoad8x8Font02
  497. ■ Display Adapters    [EGA] [MCGA] [VGA]
  498.  
  499. ■ Source Module Name  b101102d.asm
  500.  
  501. ■ Description
  502.  
  503.   Provides the default 8x8 font table in text modes.
  504.  
  505.  
  506. ■ Summary
  507.  
  508.   Procedure bvLoad8x8Font02( block : Integer );
  509.  
  510.   Parameter    Description
  511.   ---------    -------------------------------------------------
  512.   block        specifies the block of character generator RAM.
  513.  
  514.  
  515. ■ Remarks
  516.  
  517.   On a MCGA, a call to this function should be followed with a
  518.   call to bvSetBlkSpec.
  519. ..page
  520. ..head03AbvLoad8x8Font12
  521. ■ Display Adapters    [EGA] [MCGA] [VGA]
  522.  
  523. ■ Source Module Name  b101102d.asm
  524.  
  525. ■ Description
  526.  
  527.   Provides the default 8x8 font table in text modes.
  528.  
  529.  
  530. ■ Summary
  531.  
  532.   Procedure bvLoad8x8Font12( block : Integer );
  533.  
  534.   Parameter    Description
  535.   ---------    -------------------------------------------------
  536.   block        specifies the block of character generator RAM.
  537.  
  538.  
  539. ■ Remarks
  540.  
  541.   Page zero must be active and if this function is used at any
  542.   other time than immediately after a set mode, the results will
  543.   be unpredictable.
  544.  
  545.   If this function is used on an MCGA then the BIOS will execute
  546.   the function bvLoad8x16Font02.
  547. ..page
  548. ..head03AbvLoadUsrFont00
  549. ■ Display Adapters    [EGA] [MCGA] [VGA]
  550.  
  551. ■ Source Module Name  b101100d.asm
  552.  
  553. ■ Description
  554.  
  555.   Loads the users text font table into specified block of
  556.   character generator RAM.
  557.  
  558.  
  559. ■ Summary
  560.  
  561.   Procedure bvLoadUsrFont00(     pts     : Integer;
  562.                  block     : Integer;
  563.                  chcount : Word;
  564.                  startch : Word;
  565.                  Var fonttbl       );
  566.  
  567.  
  568.   Parameter    Description
  569.   ---------    -------------------------------------------------
  570.   pts          bytes per character
  571.   block        specifies the block of character generator RAM.
  572.   chcount      characters in table
  573.   startch      first character in table
  574.   fonttbl      font table address
  575.  
  576.  
  577. ■ Remarks
  578.  
  579.   On a MCGA, a call to this function should be followed with a
  580.   call to bvSetBlkSpec.
  581. ..page
  582. ..head03AbvLoadUsrFont10
  583. ■ Display Adapters    [EGA] [MCGA] [VGA]
  584.  
  585. ■ Source Module Name  b101100d.asm
  586.  
  587. ■ Description
  588.  
  589.   Loads the users text font table into specified block of
  590.   character generator RAM.
  591.  
  592.  
  593. ■ Summary
  594.  
  595.   Procedure bvLoadUsrFont10(     pts     : Integer;
  596.                  block     : Integer;
  597.                  chcount : Word;
  598.                  startch : Word;
  599.                  Var fonttbl       );
  600.  
  601.  
  602.   Parameter    Description
  603.   ---------    -------------------------------------------------
  604.   pts          bytes per character
  605.   block        specifies the block of character generator RAM.
  606.   chcount      characters in table
  607.   startch      first character in table
  608.   fonttbl      font table address
  609.  
  610.  
  611. ■ Remarks
  612.  
  613.   Page zero must be active and if this function is used at any
  614.   other time than immediately after a set mode, the results will
  615.   be unpredictable.
  616.  
  617.   If this function is used on an MCGA then the BIOS will execute
  618.   the function bvLoadUsrFont00.
  619. ..page
  620. ..head03AbvReadCell
  621. ■ Display Adapters    [MDA] [CGA] [PCjr] [EGA] [MCGA] [VGA]
  622.  
  623. ■ Source Module Name  b100800d.asm
  624.  
  625. ■ Description
  626.  
  627.   Read the cell the cursor is positioned on for its character and
  628.   attribute values.
  629.  
  630.  
  631. ■ Summary
  632.  
  633.   Procedure bvReadCell( Var ch, attr : Integer; pg : Integer );
  634.  
  635.   Parameter    Description
  636.   ---------    -------------------------------------------------
  637.   ch           will contain the character of the cell.
  638.   attr         will contain the attribute value of the cell.
  639.   pg           the page the cell to read is on.
  640.  
  641.  
  642. ■ Remarks
  643.  
  644.   The page to read from does not have to be the active page, if
  645.   the video display supports mulitple pages.
  646. ..page
  647. ..head03AbvReadPix
  648. ■ Display Adapters    [MDA] [CGA] [PCjr] [EGA] [MCGA] [VGA]
  649.  
  650. ■ Source Module Name  b100d00d.asm
  651.  
  652. ■ Description
  653.  
  654.   Read pixel from the specified graphics coordinates.
  655.  
  656.  
  657. ■ Summary
  658.  
  659.   Function bvReadPix( row, col, pg : Integer ) : Integer;
  660.  
  661.   Parameter    Description
  662.   ---------    -------------------------------------------------
  663.   row          row for pixel to be read from
  664.   col          col for pixel to be read from
  665.   pg           page to read pixel from
  666.  
  667.  
  668. ■ Function Return Value
  669.  
  670.   The pixel value at for the coordinates requested.
  671. ..page
  672. ..head03AbvScnRefresh
  673. ■ Display Adapters    [VGA]
  674.  
  675. ■ Source Module Name  b101236d.asm
  676.  
  677. ■ Description
  678.  
  679.   Enables or disables the video refresh for the currently active
  680.   display.
  681.  
  682.  
  683. ■ Summary
  684.  
  685.   Function bvScnRefresh( setting : Integer ) : Integer;
  686.  
  687.   Parameter    Description
  688.   ---------    -------------------------------------------------
  689.   setting      0 - enables refresh
  690.                1 - disable refresh
  691.  
  692.  
  693. ■ Function Return Value
  694.  
  695.   12h is returned if this function is supported.
  696. ..page
  697. ..head03AbvScrollDn
  698. ■ Display Adapters    [MDA] [CGA] [PCjr] [EGA] [MCGA] [VGA]
  699.  
  700. ■ Source Module Name  b1006xxd.asm
  701.  
  702. ■ Description
  703.  
  704.   Scrolls the contents of the window on the active display page
  705.   down by the specified number of lines.
  706.  
  707.  
  708. ■ Summary
  709.  
  710.   Procedure bvScrollDn( top,    left,
  711.             bottom, right,
  712.             lines,    attr  : Integer );
  713.  
  714.   Parameter    Description
  715.   ---------    -------------------------------------------------
  716.   top          top row of window
  717.   left         left column of window
  718.   bottom       bottom row of window
  719.   right        right column of window
  720.   lines        number of lines to scroll
  721.   attr         attribute to use for blanked area
  722.  
  723.  
  724. ■ Remarks
  725.  
  726.   If the number of lines to scroll is zero, the entire window
  727.   will be blanked.
  728. ..page
  729. ..head03AbvScrollUp
  730. ■ Display Adapters    [MDA] [CGA] [PCjr] [EGA] [MCGA] [VGA]
  731.  
  732. ■ Source Module Name  b1006xxd.asm
  733.  
  734. ■ Description
  735.  
  736.   Scrolls the contents of the window on the active display page
  737.   up by the specified number of lines.
  738.  
  739.  
  740. ■ Summary
  741.  
  742.   Procedure bvScrollUp( top,    left,
  743.             bottom, right,
  744.             lines,    attr  : Integer );
  745.  
  746.  
  747.   Parameter    Description
  748.   ---------    -------------------------------------------------
  749.   top          top row of window
  750.   left         left column of window
  751.   bottom       bottom row of window
  752.   right        right column of window
  753.   lines        number of lines to scroll
  754.   attr         attribute to use for blanked area
  755.  
  756.  
  757. ■ Remarks
  758.  
  759.   If the number of lines to scroll is zero, the entire window
  760.   will be blanked.
  761. ..page
  762.