Prev: 8DCC Up: Map Next: 8DFD
8DD0: Count the time down and print it
Used by the routine at GAME_FRAME.
One tick every three frames. The time is big-endian, as the ROM's OUT-NUM-2 prints it.
COUNT_DOWN_TIME 8DD0 LD HL,TIME_TICKS Every third frame.
8DD3 DEC (HL)
8DD4 RET NZ
8DD5 LD (HL),$03
8DD7 INC HL
8DD8 LD B,(HL)
8DD9 INC HL
8DDA LD C,(HL)
8DDB LD A,B Already zero.
8DDC OR C
8DDD JR Z,COUNT_DOWN_TIME_0
8DDF DEC (HL) A redundant decrement of the low byte: the next three instructions overwrite it.
8DE0 DEC BC One less.
8DE1 LD (HL),C
8DE2 DEC HL
8DE3 LD (HL),B
COUNT_DOWN_TIME_0 8DE4 LD IY,ERR_NR PRINT AT 19,20;
8DE8 LD A,$02
8DEA CALL $1601
8DED LD A,$16
8DEF RST $10
8DF0 LD A,$13
8DF2 RST $10
8DF3 LD A,$14
8DF5 RST $10
8DF6 LD HL,TIME The time.
8DF9 CALL $1A28
8DFC RET
Prev: 8DCC Up: Map Next: 8DFD