; "clock constants" ; "offsets into time tables" ; "sec" ; "min" ; "hrs" ; "day" ; "Known to be Sunday (dow = 0)" ; "alarm constants" ; "size of alarm routine table in words" ; "size of alarm time table entry in bytes" > ; "size of alarm time table in bytes" ; "event constants" ; "clock globals" > ; "flag to inhibit clock update" > ; "flag to stop clock update" > > ; "table to hold time temporarily" > ; "Parameter table to all time routines" > > > ; "alarm globals" > ; "flag to inhibit alarm check" > ; "flag to stop alarm check" > ; "flag to show an alarm is executing" > ; "table of routines" > ; "table of times (6 words)" ; "event globals" ; "support routines use by clock/event/alarm" ; "RT-COPY-TIME" ; "Copy time table 1 to time table 2" > ; "RT-NORM-TIME" > > ; "This is the new minutes value" >> ; "normalize minutes" > >> ; "normalize hours" > ; "Update day of month" >>> ; "normalize day, month, and year (including leap years)" ; "Given that the game takes place in the middle of June in 1887, this is a complete waste of time..." ;>> 2>> T) ( 100>> T) ( 4>> )> > > 1>> > > 1>>)>) (T )>>> ; "clock routines" ; "RT-CLOCK-INC-SET. Made a macro that calls RT-DO-CLOCK-SET" .TBL> ; "RT-CLOCK-DEF-SET. Moved to MACROS" ; "RT-CLOCK-SET. MOVED TO MACROS" ; "RT-CLOCK-INC" > ) ( )> ; "add gl-time-updt-inc to gl-time" >> > <- ,K-A-TWDTH 1>> )>> ; "copy gl-time-updt-def into gl-time-updt-inc" ; "normalize the time in gl-time" > ; "RT-PARM-SET MOVED TO MACROS" ; "RT-CLOCK-CMP" ; "Returns -1 if arg time < current time." ; "Returns 0 if arg time = current time." ; "Returns 1 if arg time > current time." T) (>> ) ( )> >> ) ( ) (>> ) ( ) (>> ) ( ) (T )>> ; "RT-CLOCK-JMP" 2) (T 1)>> > ; "RT-CLK-NTI-MSG" > > > ) ( > ) ( ) ( ) (T > )> ) (T )>) (<==? .AM-PM? 2> ) (T )>) (T )> )> )> )> )> )> > )> )> )> )>> ; "RT-CLK-DOW-MSG" ,K-DOW-BASE> 7>> >>) ( >>) (T >)> )>> ; "alarm routines" ; "RT-ALARM-SET?" ) (> > ,GL-TIME-PARM> ) (T )>>> ; "RT-ALARM-SET-REL" )> ; )>> > > <+ >> > <- ,K-A-TWDTH 1>> )>>) (T <+ >> > <- ,K-A-TWDTH 1>> )>>)> > ) (T )>>> ; "RT-ALARM-SET-ABS" )> ; )>> > > ,K-A-TWDTH> ) (T )>>> ; "RT-ALARM-CLR" ) (> > 0 ,K-A-TWDTH>)> >> ; "RT-ALARM-CHK" > > > ) ( )> )> ) (T ; "Time to run it" ; "Get the offset stored in RTN" > > > > > > > )> > )> > ; "If alarm time != new time, ask for key to cont." -1>> ) ( "> > ) ( )>>)>)> ; "Reset and start loop again." )> )>)> > > >> >> >> >> -1>> -1 0>>> )>)> > .R-CNT)>>