1 title 'Time module for the Modular CP/M 3 BIOS'
7 extrn @date,@hour,@min,@sec
17 ;----------------------------------------------------------------------
21 cseg ; time must be done from resident memory
31 ;----------------------------------------------------------------------
49 ld b,a ;b = sec, c = subcommand
53 ld hl,3 * 256 + 0 ;h = command, l = 0
65 ld b,8 ; max receive message len
68 pop hl ;len/command (discard)
87 ;----------------------------------------------------------------------
88 ; intit timer interrupt
95 and ~(M_TIE0+M_TDE0) ;stop timer 0
111 ld bc,PRT_PRE * 100 ;1/100 s == 10 ms interrupt rate
123 ;----------------------------------------------------------------------
132 in0 a,(tcr) ;reset TIF0 flag
136 ld a,(counter_10ms) ;