![]() |
Routines |
Prev: 28921 | Up: Map | Next: 29004 |
Used by the routine at CreateWindow.
|
||||
Sets up the 1UP score.
|
||||
Score_1UP | 28956 | LD HL,16417 | HL=16417 (screen buffer address). | |
28959 | LD DE,23796 | DE=1UP_Score. | ||
28962 | JR PrintScore | Jump to PrintScore. | ||
Sets up the 2UP score.
|
||||
Score_2UP | 28964 | LD HL,16441 | HL=16441 (screen buffer address). | |
28967 | LD DE,23799 | DE=2UP_Score. | ||
28970 | JR PrintScore | Jump to PrintScore. | ||
Sets up the HI score.
|
||||
Score_HI | 28972 | LD HL,16429 | HL=16429 (screen buffer address). | |
28975 | LD DE,23792 | DE=High_Score. | ||
Prints the score.
|
||||
PrintScore | 28978 | LD B,3 | B=3. | |
PrintScore_Loop | 28980 | LD A,(DE) | A=DE. | |
28981 | RRCA | A=A / 16. | ||
28982 | RRCA | |||
28983 | RRCA | |||
28984 | RRCA | |||
28985 | AND %00001111 | Keep only bits 0-3. | ||
28987 | ADD A,48 | A=A + 48 (convert to ASCII). | ||
28989 | CALL PrintScreen | Call PrintScreen. | ||
28992 | LD A,(DE) | A=DE. | ||
28993 | AND %00001111 | Keep only bits 0-3. | ||
28995 | ADD A,48 | A=A + 48 (convert to ASCII). | ||
28997 | CALL PrintScreen | Call PrintScreen. | ||
29000 | INC DE | Increment DE by one. | ||
29001 | DJNZ PrintScore_Loop | Decrease counter by one and loop back to PrintScore_Loop until counter is zero. | ||
29003 | RET | Return. | ||
View the equivalent code in;
|
Prev: 28921 | Up: Map | Next: 29004 |