User guide
Configuring an M1 CPU with Modsoft
870 USE 101 00 V.2.2
165
Reading the Time-of-Day Clock
Overview
This section tells how to read the time-of-day clock and uses an example to
describe how to interpret the time-of-day clock registers.
Reading the
Clock
Set the value
4000H
in register 4x to read data from the clock.
Example
If you reserved registers 400100...400107 as your TOD clock registers, set the time
bits, and then read the clock at 9:25:30 on Thursday, July 16, 1998, the registers
would display the following values:
Register Reading Indication
400100 0 1 1 0 0 0 0 0 0 0 0 0 0 0 0 0 All clock values have been set;
clock values are being read
400101 5 (decimal) Thursday
400102 7 (decimal) July
400103 16 (decimal) 16
400104 98 (decimal) 1998
400105 9 (decimal) 9 a.m.
40010 6 25 (decimal) 25 minutes
40010 7 30 (decimal) 30 seconds