Skip to content

111B SetClock

Stub   MON 111B (73 decimal) · Mnemonic UPDAT · Group: Device Handling (manual section 2.11)

Available from: RT programs (manual compatibility box)

Emulation source: src/handlers/mon_111B_SetClock.c

Description

Gives new values to the computer's clock and calendar. If the computer panel has a clock, it is updated.

  • The startup time for RT programs can be set by StartupTime. Such RT programs start according to the new time.
  • Illegal time values, e.g. 61 minutes, stop the program and output a message.

Parameters

Name Type Direction Description
Minute INTEGER In Minutes (0-59).
Hour INTEGER In Hours (0-23).
Day INTEGER In Day of month (1-31).
Month INTEGER In Month (1-12).
Year INTEGER In Year.

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

See also

AdjustClock, GetCurrentTime, and GetBasicTime

Compatibility

Machines Users Programs
ND-100 and ND-500 User RT and user SYSTEM RT 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 : Minute, Hour, Day, Month, Year
...
Monitor_Call('SetClock', Minute, Hour, Day, Month, Year)
INTEGER Minute, Hour, Day, Month, Year
...
Monitor_Call('SetClock', Minute, Hour, Day, Month, Year)
Minute, Hour, Day, Month, Year : INTEGER2;
...
SetClock(Minute, Hour, Day, Month, Year);
01 Minute COMP.
01 Hour COMP.
01 Day COMP.
01 Month COMP.
01 Year COMP.
...
MONITOR-CALL "SetClock" USING Minute, Hour, Day, Month, Year.
| Minute | :W BLOCK 1 |
| --- | --- |
| Hour | :W BLOCK 1 |
| Day | :W BLOCK 1 |
| Month | :W BLOCK 1 |
| Year | :W BLOCK 1 |

SetClock : EQU 37B9 + 111B
...
CALLG SetClock, 5, Minute, Hour, Day, Month, Year
LDA (PAR %Load register A with address of parameter list.
MON 111 %Monitor call SetClock.


| PAR, | MIN | %New minutes of hour. |
| --- | --- | --- |
| | HOUR | %New hour of day. |
| | DAY | %New day of month. |
| | MONTH | %New month of year. |
| | YEAR | %New value for year. |


MIN, ...
HOUR, ...
DAY, ...
MONTH, ...
YEAR, ...

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

Source

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