Routines |
Prev: CD8D | Up: Map | Next: CDAE |
|
|||||||||
Draw_Score | CD90 | LD HL,$CD8B | Starting values;
|
||||||
CD93 | LD DE,$50C8 | ||||||||
CD96 | LD B,$06 | ||||||||
Scoredigit_Loop | CD98 | PUSH BC | Stash the lot. | ||||||
CD99 | PUSH DE | ||||||||
CD9A | PUSH HL | ||||||||
CD9B | LD A,(HL) | Grab the number at the source memory location;
|
|||||||
CD9C | AND A | ||||||||
CD9D | JR NZ,Scoredigit_Non_Zero | ||||||||
CD9F | ADD A,$0A | ||||||||
Scoredigit_Non_Zero | CDA1 | ADD A,$23 | |||||||
CDA3 | CALL Draw_Number | ||||||||
CDA6 | POP HL | Retrieve our current source, destination and counter from the stack. | |||||||
CDA7 | POP DE | ||||||||
CDA8 | POP BC | ||||||||
CDA9 | INC DE | Increase the screen buffer memory location by one, decrease the source memory location and loop round to Scoredigit_Loop until it is zero. | |||||||
CDAA | DEC HL | ||||||||
CDAB | DJNZ Scoredigit_Loop | ||||||||
CDAD | RET | Return. |
Prev: CD8D | Up: Map | Next: CDAE |