home *** CD-ROM | disk | FTP | other *** search
- ;
- ; (C) Copyright 1987-1992; MetaWare Incorporated
- ;
- ; Set the memory model here.
- ; 1. Chose Small_code or Large_code.
- ; 2. Choose Small_data or Large_data.
- ; 3. IF YOU CHOSE Large_data, choose DS_grouped or not.
-
- COMMENT %
- These symbols get set depending on the memory model.
- Large_code equ 1 ; Many CSs.
- Small_code equ 1 ; CS is fixed.
- Large_data equ 1 ; ES & SS separate; DS may or may not vary.
- Small_data equ 1 ; DS=SS=ES.
- ifdef Small_data
- DS_grouped equ 1
- else
- Is DS grouped or does it vary? Choose this only in Large_data model.
- You choose, in large data case, whether DS is grouped.
- DS_grouped equ 1
- endif
- %
-
-
- ; Which memory model?
- ifdef small_m
- Small_code equ 1
- Small_data equ 1
- DS_grouped equ 1
- extrn SMALL?:near
- else
- ifdef compact_m
- Small_code equ 1
- Large_data equ 1
- DS_grouped equ 1
- extrn COMPACT?:near
- else
- ifdef big_m
- Large_code equ 1
- Large_data equ 1
- DS_grouped equ 1
- extrn BIG?:near
- else
- ifdef large_m
- Large_code equ 1
- Large_data equ 1
- extrn LARGE?:near
- else
- ifdef medium_m
- Large_code equ 1
- Small_data equ 1
- DS_grouped equ 1
- extrn MEDIUM?:near
- else
- %out1 >>>> Target memory model not specified for model file
- %out1 >>>> You must define one of:
- %out1 >>>> small_m, compact_m, medium_m, big_m, large_m
- %out1 >>>> on the assembler command line.
- .err
- endif
- endif
- endif
- endif
- endif
-
- ; There are 6 possible libraries:
- ; 1 CS 1 DS 1 SS=ES=DS ; Small
- ; Many CS 1 DS 1 SS=ES=DS ; Medium
- ; 1 CS 1 DS 1 SS,Many ES ; Compact
- ; Many CS 1 DS 1 SS,Many ES ; Big
- ; 1 CS Many DS 1 SS,Many ES ; Semi-Giant; strange; support?
- ; Many CS Many DS 1 SS,Many ES ; Giant
- ; Not supported:
- ; 1 CS 1 DS 1 SS,1 ES ; No one supports this.
- ; Many CS 1 DS 1 SS,1 ES ; " "
-
- include macros
-
-