Skip to content

155B GraphicFunction

Stub   MON 155B (109 decimal) · Mnemonic GRAPH · Group: Input and Output Monitor Calls (manual section 2.5)

Available from: All programs (manual compatibility box)

Emulation source: src/handlers/mon_155B_GraphicFunction.c

Description

Executes various functions on a graphic peripheral, such as a NORDCOM terminal, a pen plotter, or a Textronix display.

Notes

  • Some functions require a delay from the calling program. See the specifications for the peripheral in use. SuspendProgram delays a program.
  • The old monitor call PLOT is obsolete.

Parameters

Name Type Direction Description
Ycoor INTEGER In The Y-coordinate of new line relative to current reference point.
Xcoor INTEGER In The X-coordinate of new line relative to current reference point.
Code INTEGER In Integer code.
DeviceNo INTEGER In Logical device number.
Func INTEGER In Function code. 0 means PLOT. 1 means PLOTS, i.e. establish reference point and/or clear a NORDCOM screen. 2 means NEWP, i.e. select pen or screen.
ReturnValue INTEGER Out Return value. Output parameter for the PLOT function. Not used on the ND-500.

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

See also

SuspendProgram

Compatibility

Machines Users Programs
ND-100 and ND-500 All users All programs

The manual's compatibility box for this call, word for word.

Yes/no fields from the YAML extraction (not in the manual's words):

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

Examples

From the manual (OCR text, not corrected).

INTEGER : Xcoor, Ycoor
INTEGER : Code, DeviceNo, Func, ReturnValue
...
Monitor_Call('GraphicFunction', Xcoor, Ycoor, Code, DeviceNo, &
    Func, ReturnValue)
INTEGER Xcoor, Ycoor, Code, DeviceNo, Func, ReturnValue
...
Monitor_Call('GraphicFunction', Xcoor, Ycoor, Code, DeviceNo, Func, ReturnValue)
Xcoor, Ycoor, Code, DeviceNo, Func, ReturnValue : INTEGER2;
...
GraphicFunction(Xcoor, Ycoor, Code, DeviceNo, Func, ReturnValue);
01 Xcoor COMP.
01 Ycoor COMP.
01 Code COMP.
01 DeviceNo COMP.
01 Func COMP.
01 ReturnValue COMP.
...
MONITOR-CALL "GraphicFunction" USING Xcoor, Ycoor, Code, DeviceNo, Func, ReturnValue.
Xcoor : W BLOCK 1
Ycoor : W BLOCK 1
Code : W BLOCK 1
DeviceNo : W BLOCK 1
Func : W BLOCK 1
GraphicFunction : EQU 37B9 + 155B
...
CALLG GraphicFunction, 5, Xcoor, Ycoor, Code, DeviceNo, Func
LDA (PAR                 %Load register A with address of parameter list.
MON 155                  %Monitor call Graphic.
STA STAT                 %Store return status.
...
STAT, 0
PAR,
XCOOR                    %X coordinate of endpoint.
YCOOR                    %Y coordinate of endpoint.
CODE                     %Integer code.
DEVNO                    %Logical device number.
FUNC                     %Function.

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_155B_GraphicFunction
Code lines 10 (non-blank, non-comment lines in the file)

Source

SINTRAN III Monitor Calls (ND-860228.2 EN).