getInstructionType(Defined in: src/parsing/parser.ts:622 Gets the instruction type code for a given instruction string. This function centralizes the mapping from string instructions to their numeric equivalents used in the instruction set processing.instruction):string|number|BigInt
Parameters
| Parameter | Type | Description |
|---|---|---|
instruction | string | number | BigInt | The instruction string to convert (e.g., ‘N’, ‘PLH’, ’+’, ‘AND’). |
Returns
string | number | BigInt
The numeric instruction type code, or the original instruction if not a string operation.