The OPSYN instruction defines or deletes symbolic operation codes.
The OPSYN instruction has two formats. The first format defines a new operation code to represent an existing operation code, or to redefine an existing operation code for:
| Define operation code |
|---|
|
If operation_code_2 has been previously defined as both a machine instruction and as a macro, both are copied to the definition of operation_code_1.
The second format deletes an existing operation code for:
| Delete operation code |
|---|
|
In the first format, the OPSYN instruction assigns the properties of the operation code denoted by operation_code_2 to the ordinary symbol denoted by symbol or the operation code denoted by operation_code_1.
In the second format, the OPSYN instruction causes the operation code specified in operation_code_1 to lose its properties as an operation code.
The OPSYN instruction can be coded anywhere in the program to redefine an operation code.
The symbol in the name field can represent a valid operation code. It loses its current properties as if it had been defined in an OPSYN instruction with a space-filled operand field. In the following example, L and LR both possess the properties of the LR machine instruction operation code:
L OPSYN LR
When the same symbol appears in the name field of two OPSYN instructions, the latest definition takes precedence. In the example below, STORE now represents the STH machine operation:
STORE OPSYN ST STORE OPSYN STH
AIF (L'AFTER LT 2).BEYOND
OPCOPY OPSYN COPY OPSYN not processed during look ahead
OPCOPY COPYBOOK OPCOPY fails
.BEYOND ANOP ,[ Top of Page | Previous Page | Next Page | Contents | Index ]