Clock display


This code from block 1168 is loaded into node 512. It displays a 4-digit time that can be PDT, UTC or LST.

d/mod

Basic divide code with a 36-bit positive dividend; 18-bit negative divisor, 18-bit positive quotient and remainder.

/mod

.min

Display hhmm:

.d

4-digit decimal display. Not used.

eol

Send end-of-line character.

go

An infinite loop: This timing is not exact, but adequate for my purposes.

Big characters

The display can be done with normal characters (with more blank lines) but it's not impressive.

Code for nodes 513 and 709 can be changed to display big characters. They're defined as the usual 5x7 bit maps (without the blank slice). For 8 times larger, each slice in 513 increases from 3 to 24 scan lines and the number of blank lines becomes 600. The pixel delay in 709 is increased so the pixels are square (166 unexts).

These changes are an exercise for the reader.