2 ; Oliver Schmidt, 16.8.2018
4 ; Common stuff for the clock routines
10 .export TM, load_tenth
17 ;----------------------------------------------------------------------------
22 lda #<(100 * 1000 * 1000 / $10000)
23 ldx #>(100 * 1000 * 1000 / $10000)
26 lda #<(100 * 1000 * 1000)
27 ldx #>(100 * 1000 * 1000)
32 ;----------------------------------------------------------------------------
33 ; Constructor that writes to the 1/10 sec register of the TOD to kick it
34 ; into action. If this is not done, the clock hangs. We will read the register
35 ; and write it again, ignoring a possible change in between.
52 ;----------------------------------------------------------------------------
53 ; TM struct with date set to 1970-01-01