Use this system macro to set the TPF system to 24-bit addressing mode or
31-bit addressing mode.
Format
- label
- A symbolic name can be assigned to the macro statement.
- MODE
- Specify one of the following:
- 31
- This argument indicates that 31-bit addressing mode is to be set.
- 24
- This argument indicates that 24-bit addressing mode is to be set.
- REG=Rx
- This parameter is optional. It provides a work register for the
macro to use. When coded in a real-time program, valid registers
are: R1 through R7, R14, and R15. When coded in any other type of
program, any register except R0 can be used. If the REG parameter is
not coded the register defaults to R1.
Entry Requirements
All entry requirements are fulfilled by the proper use of the parameters as
defined in Format.
Return Conditions
- Control is returned to the next sequential instruction (NSI).
- Upon return, the requested addressing mode is set in the PSW.
- The work register specified by the REG parameter is not saved. The
contents of the remaining registers are unchanged.
- The condition code is only changed when the parameter MODE=31 is
used. The condition code remains unchanged when the parameter MODE=24
is used.
Programming Considerations
- This macro can be run on any I-stream.
- This macro is intended for system use, not for general purpose use.
- The contents of the work register specified by the REG parameter are not
saved.
- MODEC cannot be called from an ISO-C segment (coded with BEGIN
TPFISOC=YES).
Examples
None.