home *** CD-ROM | disk | FTP | other *** search
- ;
- ; DOS.MAC -- Header file to set data model and segments
- ;
- ; The following definitions specify the memory model used:
- ;
- ; LDATA Multiple data segments (large data model)
- ; SDATA Single data segment (small data model)
- ; LPROG Multiple code segments
- ; SPROG Single code segment
- ;
- ; The following macros specify the SEGMENT and GROUP definitions
- ; for the various memory models:
- ;
- ; PSEG Beginning of code segment
- ; ENDPS End of code segment
- ; DSEG Beginning of data segment
- ; ENDDS End of data segment
- ;
- ; If the C TOOLS library functions are recompiled, the switches
- ; should be set to specify the model used.
- ;
- ; Version 2.0 (C)Copyright Blaise Computing Inc. 1985
-
- if MSC300
-
- LDATA equ 0
- SDATA equ 1
- LPROG equ 0
- SPROG equ 1
-
- dseg macro
- DGROUP group _DATA
- _DATA segment word public 'DATA'
- assume ds:DGROUP
- endm
-
- endds macro
- _DATA ends
- endm
-
- if LPROG
-
- pseg macro module_name
- module_name&_TEXT segment byte public 'CODE'
- assume cs:module_name&_TEXT
- endm
-
- endps macro module_name
- module_name&_TEXT ends
- endm
-
- else ; LPROG
-
- pseg macro
- _TEXT segment byte public 'CODE'
- assume cs:_TEXT
- endm
-
- endps macro
- _TEXT ends
- endm
-
- endif ; LPROG
-
- endif ; MSC300