Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- Nanforum Toolkit v2.1 Reference Guide - <b>ft_adapter()</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
 FT_ADAPTER()
 Report the type of video adapter installed
------------------------------------------------------------------------------

 Syntax

     FT_ADAPTER() -> nResult

 Arguments

    None

 Returns

    Integer representing type of video adapter

       0 - monochrome
       1 - CGA
       2 - EGA
       3 - VGA

 Description

    This function is valuable if you use a graphics library and need to
    know what type of graphics adapter is installed.

    The source code is written to adhere to Turbo Assembler's IDEAL mode.
    To use another assembler, you will need to rearrange the PROC and
    SEGMENT directives, and also the ENDP and ENDS directives (a very
    minor task).

 Examples

    iVideo := FT_ADAPTER()

    DO CASE
       CASE iVideo == 0
          QOUT( "You have a monochrome adapter." )
       CASE iVideo == 1
          QOUT( "You have a CGA adapter." )
       CASE iVideo == 2
          QOUT( "You have an EGA adapter." )
       CASE iVideo == 3
          QOUT( "You have a VGA adapter." )
    ENDCASE

 Source: ADAPTER.ASM

 Author: Ted Means

See Also: FT_SETMODE()

Online resources provided by: http://www.X-Hacker.org --- NG 2 HTML conversion by Dave Pearson