Skip to content

146B PrivInstruction

Stub   MON 146B (102 decimal) · Mnemonic IPRIV · Group: RT Program Execution (manual section 2.10)

Available from: not known - no compatibility box captured from the manual

Emulation source: src/handlers/mon_146B_PrivInstruction.c

Description

Executes a privileged machine instruction on the ND-100. Privileged instructions may, for example, turn the paging and interrupt mechanisms on and off.

  • The instruction uses the register contents of the calling program. The registers may be changed.

Parameters

Name Type Direction Description
Instruction INTEGER In Privileged machine instruction to execute on the ND-100.

Direction: In = the program supplies the value, Out = the call returns it, In/Out = both.

See also

IOInstruction

Compatibility

ND-100 ND-500 User programs RT programs System programs
Yes Yes Yes Yes No

From the YAML extraction; this call's page in the manual had no compatibility box that was captured.

Examples

From the manual (OCR text, not corrected).

INTEGER : Instruction
...
Monitor_Call('PrivInstruction', Instruction)
INTEGER Instruction
...
Monitor_Call('PrivInstruction', Instruction)
Instruction : INTEGER2;
...
PrivInstruction(Instruction);
01 Instruction COMP.
...
MONITOR-CALL "PrivInstruction" USING Instruction.
TReg : W BLOCK 1
AReg : W BLOCK 1
DReg : W BLOCK 1
XReg : W BLOCK 1
ErrCode : W BLOCK 1
PrivInstruction : EQU 37B9 + 146B
...
CALLG PrivInstruction, 4, TReg, AReg, DReg, XReg
IF K GO Error
...
Error, W1 =: ErrCode
| LDT  | INSTR  | %Instruction to be executed.                   |
|------|--------|------------------------------------------------|
| MON  | 146    | %Monitor call PrivInstruction.                 |
| ...  |        |                                                |
| INSTR, | 150404 | %Turn off memory management system. Dangerous! |


ND-100 and ND-500   User RT and user SYSTEM   RT programs

ndmonlib implementation

Stub Registered MON_STATUS_NOT_IMPLEMENTED: the handler is a stub. mon_dispatch() in src/core/mon_dispatch.c reports the call as unimplemented without calling it.

Handler mon_146B_PrivInstruction
Code lines 6 (non-blank, non-comment lines in the file)

Source

SINTRAN III Monitor Calls (ND-860228.2 EN), page 391.