qa.hlp (Table of Contents; Topic list)
Important Notice
The pages on this site contain documentation for very old MS-DOS software, purely for historical purposes. If you're looking for up-to-date documentation, particularly for programming, you should not rely on the information found here, as it will be woefully out of date.
struct.ex
   Example  Back  Contents  Index
──────────────────────────────────────────────────────────────────────────────
 
;* Declare structure for video configuration
;*
;* Shows:   STRUC    ENDS    COMM
 
vid_config      STRUC
  mode          DB      ?               ; Current mode
  dpage         DB      ?               ; Current display page
  rows          DB      ?               ; Number of display rows - 1
  display       DB      ?               ; Either MONO or COLOR
  adapter       DB      ?               ; Adapter code
  CGAvalue      DB      ?               ; Enable value for CGA
  sgmnt         DW      ?               ; Video segment with page offset
vid_config      ENDS
 
 
;* Declare communal variables.
 
        COMM    NEAR vconfig:vid_config ; Video configuration structure
        COMM    NEAR _psp:WORD          ; Segment of Pgm Segment Prefix
        COMM    NEAR _env:WORD          ; Segment of environment block
                                    -♦-