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 - Norton Guide http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]

               This example shows how you would set up
                 the headers for an ASM source file.

; File......: ADAPTER.ASM
; Author....: Ted Means
; CIS ID....: 73067,3332
; Date......: $Date$
; Revision..: $Revision$
; Log file..: $Logfile$
;
; This is an original work by Ted Means and is placed in the
; public domain.
;
; Modification history:
; ---------------------
;
; $Log$
;
;
;  $DOC$
;  $FUNCNAME$
;     FT_ADAPTER()
;  $CATEGORY$
;     Video
;  $ONELINER$
;     Report the type of video adapter installed
;  $SYNTAX$
;     FT_ADAPTER() -> nResult
;  $ARGUMENTS$
;     None
;  $RETURNS$
;     0  if monochrome
;     1  if CGA
;     2  if EGA
;     3  if 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
;  $INCLUDE$
;     FTVIDEO.CH
;  $SEEALSO$
;     FT_SETMODE()  FT_GETMODE()
;  $END$
;

See Also: Sample Clipper or C header Submitting code for the Library

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