Initialize memory space and location counters.
ORG rms[rlc][rmp][,lms[llc][lmp]]
The ORG directive is used to specify addresses and to indicate memory space and mapping changes. It also can designate an implicit counter mode switch in the Assembler and serve as a mechanism for initiating overlays.
A label is not allowed with this directive.
The following table describes the ORG directive elements.
| Element | Description |
|---|---|
| rms | The memory space (Y or P) that is used as the runtime memory space. |
| rlc | The runtime counter, H, L, or default (if neither H or L is specified), associated with the rms and used as the runtime location counter. |
| rmp | Indicates the runtime physical mapping to DSP memory: I - internal, E - external, R - ROM, A - port A, B - port B. If not present, no explicit mapping is done. |
| lms | The memory space (X or P) that is to be used as the load memory space. |
| llc | The load counter, H, L, or default (if neither H or L is specified), that is associated with the lms and is used as the load location counter. |
| lmp | Indicates the load physical mapping to DSP memory: I - internal, E - external, R - ROM, A - port A, B - port B. If not present, no explicit mapping is done. |
If the last half of the operand field in an ORG directive dealing with the load memory space and counter is not specified, then the Assembler assumes that the load memory space and load location counter are the same as the runtime memory space and runtime location counter. In this case, object code is being assembled to be loaded into the address and memory space where it is when the program is run, and is not an overlay.