home *** CD-ROM | disk | FTP | other *** search
/ Collection of Hack-Phreak Scene Programs / cleanhpvac.zip / cleanhpvac / SOURC455.ZIP / SRFILES.ZIP / SAMPLE1.DEF < prev    next >
Text File  |  1992-07-07  |  18KB  |  260 lines

  1.  
  2.                   ▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
  3.                       SOURCER DEFINITION FILE - SAMPLE1
  4.                   ▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
  5.  
  6.  
  7.  
  8.  
  9.  ▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒ Section 1: CONTROL INFORMATION   ▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒
  10.  
  11.  comments are indented one or more spaces
  12.  ┌─── Section 1 instructions──────────────────────────────────────────────────┐
  13.  │                                                                            │
  14.  │ Enter any of the following options, starting in the 1st column             │
  15.  │  (for no options enter "none" )  Only the first letter of the              │
  16.  │  command is necessary.                                                     │
  17.  │                                                                            │
  18.  │  Analysis option    = xxxxx Any option letters A-Z can be used.  Upper     │
  19.  │                              case indicates turning option on, lower case  │
  20.  │                              turns the option off.   See manual for a      │
  21.  │                              complete list of options.                     │
  22.  │  Code style         = xxx   Code style types include:                      │
  23.  │                              com, exe, fragment, zero start,               │
  24.  │                              device driver, overlay, special, new EXE,     │
  25.  │                              or Windows VxD.                               │
  26.  │  Drive              = x     Disk drive for output (letter a-z)             │
  27.  │  Format             = xxx   Output format ASM or LST for source code or    │
  28.  │                              listing output (LST is the default)           │
  29.  │  Go                         When the .def file has loaded, go              │
  30.  │  Header             = xxx   Enter the ascii header string (32 char max)    │
  31.  │  Input filename     = xxx   Filename for input (may include disk & path)   │
  32.  │  Keep segments      = xxx   When loading a file, use the file defined      │
  33.  │                              segments (FILE), use the def file segments    │
  34.  │                              in section 2 (DEF) or use both (BOTH)         │
  35.  │                              NOTE: Specify this option prior to file input │
  36.  │                              BOTH is the default, used in most cases       │
  37.  │  Label              = xxx   Select label type, Decimal, Zero fill,         │
  38.  │                              Segment & offset, Letter segment & offset     │
  39.  │  Math               = xx    Select math co-processor options ON/OFF/AUTO   │
  40.  │  Narrow ON                  For listings, do not include hex instructions  │
  41.  │  None                       Use default commands only                      │
  42.  │  Output filename    = xxx   Filename for output (may include drive & path) │
  43.  │  Passes             = x     Select the number of passes from 2 to 9        │
  44.  │  Remark             = xxx   Select remarks to be included: All, None,      │
  45.  │                              Data remarks only, Interrupts & I/O only,     │
  46.  │                              Others only, Except Data, Except Interrupts,  │
  47.  │                              Except Others                                 │
  48.  │  Segment display    = xxx   Set the segment type, OFF/HEX/NAME             │
  49.  │  Target assembler   = xxx   Select the assembler the code may be re-       │
  50.  │                              assembled on.  Options include MASM-4.0,      │
  51.  │                              MASM-5.0, MASM-5.1, MASM-6.0 TASM-1.0,        │
  52.  │                              TASM-2.X, TASM-3.0, OPTASM, OTHER, or NONE    │
  53.  │  uP                 = xxx   Select the uP from:                            │
  54.  │                              8088, V20/V30, 80186, 80286, P286, 80386,     │
  55.  │                              P386, 80486, P486 or AUTO for automatic       │
  56.  │  Vertical lines     = xxx   For listings, select the number of lines per   │
  57.  │                              page from 10 to 255 (default is 59)           │
  58.  │  Words to upper case        Set upper case style (lower case is default)   │
  59.  │  Xref               = xx    ON or OFF (selecting ON sets passes to 5)      │
  60.  │  Zap load start     = x:x   Specifies double word start point within file  │
  61.  │                                                                            │
  62.  └────────────────────────────────────────────────────────────────────────────┘
  63.   
  64.  ▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒ Section 1: CONTROL INFORMATION   ▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒
  65.   
  66.         <<<<<  Insert commands here (start in column 1) or "none"
  67.  
  68.  
  69.  
  70.  ▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒ Section 2: RANGE DEFINITION      ▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒
  71.  
  72.  ┌─── Section 2 instructions──────────────────────────────────────────────────┐
  73.  │                                                                            │
  74.  │  segment:offset = start processing location (hex)                          │
  75.  │                     see note 3 at end on referencing loaded file segments  │
  76.  │                                                                            │
  77.  │  end offset     = ending location for segment                              │
  78.  │                                                                            │
  79.  │  default ds, es = default used when not overwritten by in-line code        │
  80.  │                                                                            │
  81.  │  segment type   = auto  - code/data, full data resolving                   │
  82.  │                   code  - code, limited data resolving                     │
  83.  │                   data  - data, no code processed                          │
  84.  │                   stack - stack, no code processed                         │
  85.  │                   rauto - ROM code/data (same as "auto") in ROM            │
  86.  │                   rcode - ROM code (same as "code") in ROM                 │
  87.  │                                                                            │
  88.  │  segment size   = use16 for 16 bit segments (this is the default)          │
  89.  │                   use32 for 32 bit segments. The text use32 may not be     │
  90.  │                   abbreviated.                                             │
  91.  │                                                                            │
  92.  └────────────────────────────────────────────────────────────────────────────┘
  93.  
  94.  
  95.  ▒▒▒▒ Segments ▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒
  96.   
  97.   begin      end      default      seg   seg  
  98.  seg:off     off     ds     es     type  size  
  99.  -------     ----    ----   ----   ----- -----
  100.         <<<<<  Insert ranges here (start in column 1) or "none"
  101.  
  102.  
  103.  
  104.    ▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒ Section 3  REFERENCE DEFINITIONS ▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒
  105.  
  106.  ┌─── Section 3 instructions──────────────────────────────────────────────────┐
  107.  │                                                                            │
  108.  │  segment:offset = absolute location of item (hex)                          │
  109.  │                    see note 3 at end on referencing loaded file segments   │
  110.  │                    optional short-cut:                                     │
  111.  │                       use "+" to indicate next data offset                 │
  112.  │                                                                            │
  113.  │  typ            = type field                                               │
  114.  │                    DB = data byte                                          │
  115.  │                    DW = data word                                          │
  116.  │                    DD = double word                                        │
  117.  │                    DA = ascii text byte(s)                                 │
  118.  │                    DS = data structure                                     │
  119.  │                    SUB = subroutine reference (S can also be used)         │
  120.  │                    LOC = location reference   (L can also be used)         │
  121.  │                    FORCE = forced function    (F can also be used)         │
  122.  │                                                                            │
  123.  │  options (indicate one or more options with a comma separator, except      │
  124.  │           forced functions only can have one option per line)              │
  125.  │                                                                            │
  126.  │     data options:  , C xxx    comment number xxx (from 1 to 3FF)           │
  127.  │                    , EQU      treat label as an equate                     │
  128.  │                    , DUP      duplicate same bytes/words R times           │
  129.  │                    , INDEX    replace a index of the same value            │
  130.  │                    , OSN      offset sub_xxx               (Sub Near)      │
  131.  │                    , OSF      offset sub_xxx, seg sub_xxx  (Sub Far)       │
  132.  │                    , OLN      offset loc_xxx               (Loc Near)      │
  133.  │                    , OLF      offset loc_xxx, seg loc_xxx  (Loc Far)       │
  134.  │                    , ODN      offset data_xxx              (Data Near)     │
  135.  │                    , ODF      offset data_xx, seg data_xx  (Data Far)      │
  136.  │                    , R xxxx   repeat 0 to FFFF, (FFFF bytes max)           │
  137.  │                                 (i.e. dw, R 4    indicates 8 bytes)        │
  138.  │                                 (see manual for additional options)        │
  139.  │                    , SEG      item is a segment name (dw only)             │
  140.  │                    , UNUSED   if item is never referenced, then do not use │
  141.  │                                                                            │
  142.  │      Location      , C xx     comment number xx (from 1 to FF)             │
  143.  │         options:   , EXT      external entry point to program              │
  144.  │                    , FAR      far procedure                                │
  145.  │                    , NEAR     near procedure                               │
  146.  │                              Note: EXT, FAR & NEAR all reset the simulator │
  147.  │                    , UNUSED   if item is never referenced, then do not use │
  148.  │                                                                            │
  149.  │      Subroutine    , C xx     comment number xx (from 1 to FF)             │
  150.  │         options:   , FAR      subroutine is defined as FAR                 │
  151.  │                    , TERM     subroutine terminates (does not return to    │
  152.  │                                 caller)                                    │
  153.  │                    , UNUSED   if item is never referenced, then do not use │
  154.  │                                                                            │
  155.  │       Forced       , ANALYSIS xxxxx    Select different analysis options   │
  156.  │          options:             at any time, with lower case to turn option  │
  157.  │                               off, and upper case to turn option(s) on.    │
  158.  │                    , CODE     switch to code mode                          │
  159.  │                    , COMMENT xxxxxxxxx  A comment may be placed at any     │
  160.  │                               offset within a file, replacing any auto-    │
  161.  │                               matically generated comment                  │
  162.  │                    , DATA     switch to data mode                          │
  163.  │                    , CODE16   switch to 16 bit code mode                   │
  164.  │                    , CODE32   switch to 32 bit code mode                   │
  165.  │                    , ENDP     force a endp to appear after instruction     │
  166.  │                    , AX=xxxx  change the value of any simulation           │
  167.  │                               register ax/bx/cx/dx/bp/si/di/sp             │
  168.  │                                        ds/es/ss/fs/gs                      │
  169.  │                    , EAX=xxxx  change the value of any 32 bit simulation   │
  170.  │                                register eax/ebx/ecx/edx/ebp/esi/edi        │
  171.  │                    , EAx      LEA instruction's reference item type        │
  172.  │                                 EAS for sub, EAL for location, EAD for data│
  173.  │                                 optional segment follows                   │
  174.  │                    , IMMEDIATE  force an instrucion with an offset to      │
  175.  │                               an immediate.                                │
  176.  │                    , Ox       convert immediate value to offset            │
  177.  │                               OS for sub, OL for location, OD for data     │
  178.  │                               optional segment follows (cs segment default)│
  179.  │                    , REG      display the internal simulation registers    │
  180.  │                                                                            │
  181.  │                            Forced index table analysis for calls & jumps   │
  182.  │                    , SN       table type "offset sub_xx"                   │
  183.  │                    , SF       table type "offset sub_xxx, seg sub_xxx"     │
  184.  │                    , LN       table type "offset loc_xx"                   │
  185.  │                    , LF       table type "offset loc_xxx, seg loc_xxx"     │
  186.  │                           format: "seg_a:xxxx  f, sn 1234:22 34"           │
  187.  │                               where 1234:22 is the location of the table   │
  188.  │                               with 34h entries                             │
  189.  │                                                                            │
  190.  │  label field    = enter label up to 15 characters long (32 chars with EMS; │
  191.  │                     label ignored for forced functions; do not place a     │
  192.  │                     comma before or inside label)                          │
  193.  │                                                                            │
  194.  │  comment field  = a short comment can be included here (64 characters max) │
  195.  │                   if a semi-colon appears, the rest of the line is ignored │
  196.  └────────────────────────────────────────────────────────────────────────────┘
  197.                                                                                
  198.    ▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒ Section 3  REFERENCE DEFINITIONS ▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒
  199.  
  200.  
  201.  ════ Subroutines ═══════════════════════
  202.   seg:off   type & options     label           comments
  203.   -------   --------------     --------------  --------------
  204.         <<<<<  Insert new reference definitions here (start in column 1)
  205.  
  206.  
  207.  ════ Locations        ═════════════════════════
  208.   seg:off   type & options     label           comments
  209.   -------   --------------     --------------  --------------
  210.         <<<<<  Insert new reference definitions here (start in column 1)
  211.  
  212.  
  213.  ════ Data Items ════════════════════════
  214.   seg:off   type & options     label           comments
  215.   -------   --------------     --------------  --------------
  216.         <<<<<  Insert new reference definitions here (start in column 1)
  217.  
  218.  
  219.  
  220.  
  221.  ┌─── General Notes ─────────────────────────────────────────────────────────┐
  222.  │  Notes:                                                                   │
  223.  │     1) Must have at least one entry in each section to operate properly.  │
  224.  │          Use "none" if no entries are needed for a section.               │
  225.  │          Separate each section with at least one line with a space in     │
  226.  │          column 1.                                                        │
  227.  │                                                                           │
  228.  │     2) Order of entries within sections 2 & 3 is unimportant.             │
  229.  │                                                                           │
  230.  │     3) When a filename is specified in section 1, it is loaded and the    │
  231.  │         first 250 segments can be referenced as "seg_a" to "seg_z" and    │
  232.  │          "seg_aa" to "seg_az" through to the 250th segment "seg_io".      │
  233.  │          These can be used anywhere a segment is required.  For example   │
  234.  │          a location label can be defined as:                              │
  235.  │                                                                           │
  236.  │                        6234:0124  loc, Ext, C 2  temp_value_a             │
  237.  │                  or:   seg_b:0124 loc, Ext, C 2  temp_value_a             │
  238.  │                                                                           │
  239.  │          The second entry will use the 2nd segment within the loaded file │
  240.  │          An error will be generated if a segment is used beyond those     │
  241.  │          specified by the file load (Consult manual for more information).│
  242.  │                                                                           │
  243.  │     4) Section 3 ignores blank lines or lines starting with a space in    │
  244.  │          column 1, or the balance of a line where a semicolon occurs.     │
  245.  │                                                                           │
  246.  │     5) The following examples show acceptable forms for the same function,│
  247.  │          a location entry as a external entry point with comment #2:      │
  248.  │                                                                           │
  249.  │          seg_a:0124 loc, Ext, C 2  temp_value_a  ; prefered format        │
  250.  │          seg_a:0124 l, Ext, C 2  temp_value_a                             │
  251.  │          seg_a:0124 l, E, C=2  temp_value_a      ; notes can follow       │
  252.  │          seg_a:0124 l, External, C 2       temp_value_a                   │
  253.  │          seg_a:124  Location, Ext, C 02   temp_value_a                    │
  254.  │          seg_a:124  L, e, c 2 temp_value_a                                │
  255.  │                                                                           │
  256.  │     6) Upper and lower case will have no effect (except for analysis      │
  257.  │          options), but is preserved for labels.                           │
  258.  └───────────────────────────────────────────────────────────────────────────┘
  259.  
  260.