The HLASM parser ships
with predefined machine instructions. You can add to this list of instructions recognized by the
parser by creating machine instructions of your own in your user macro file.
Procedure
To create a new machine instruction definition in your user macro file, complete the
following steps:
- Do one of the following actions:
- In the HLASM tab of the Editor Options preference page, type the name of your user macro
file in the User Macro File field.
- In the HLASM Parser preference page , type the name of your user macro file in the
User Macro File field.
- Click on the Manage button next to the User Macro
File field.
The Manage Macro Files dialog appears
and, if specified, it will load the macro file from the User Macro File
field.
- Select the desired file from the Macro File combo box, import an
existing file, or create a new file.
The macro file will be loaded into the
dialog.
- Select the Machine Instructions tab in the Manage Macro
Files dialog.
- Click on the New button next to the list of machine
instructions.
The Create Machine Instruction wizard
appears.
- Specify the name of the machine instruction in the Name
field.
- Optional. Specify a description for the machine instruction.
Note: The description will appear when content assist is invoked.
- Select one of the following from the Behavior combo:
- Add definition: this will add the current machine instruction definition
to any definition with the same name in the base macro file.
- Replace definition: this will replace the machine instruction definition
in the base macro file with the current one.
- Remove definition: this will remove the machine instruction definition
from the base macro file when loaded into the parser, thus making the machine instruction definition
unrecognized.
- Optional. Click Next.
- Optional. Create any desired parameters.
- Optional. Click Next.
- Optional. Order any created parameters.
- Click Finish.