Prev: 27437 Up: Map Next: 27555
27469: DRAW_SCORE
Used by the routines at L27555 and FETCH_HIGHSCORE_NAME_FOR_DISPLAY.
Input
B x coordinate
C y coordinate
15744 score characters
DRAW_SCORE 27469 PUSH HL
27470 LD A,B
27471 CP 24
27473 RET NC
27474 AND 24
27476 ADD A,64
27478 LD H,A
27479 LD A,B
27480 ADD A,A
27481 ADD A,A
27482 ADD A,A
27483 ADD A,A
27484 ADD A,A
27485 ADD A,C
27486 LD L,A
27487 POP DE
27488 LD B,6 Prepare to loop 6 times; there are seven characters in the score
DRAW_SCORE_0 27490 PUSH HL
27491 PUSH DE
27492 LD A,(DE)
27493 LD E,A
27494 LD D,0
27496 SLA E
27498 RL D
27500 SLA E
27502 RL D
27504 SLA E
27506 RL D
27508 LD IX,15744
27512 ADD IX,DE
27514 PUSH IX
27516 POP DE
27517 LD C,8 Prepare to loop 8 times
DRAW_SCORE_1 27519 LD A,(DE)
27520 RRCA
27521 EX DE,HL
27522 OR (HL)
27523 EX DE,HL
27524 INC DE
27525 LD (HL),A
27526 INC H
27527 DEC C
27528 JP NZ,DRAW_SCORE_1 Loop 8 times
27531 POP DE
27532 INC DE
27533 POP HL
27534 INC HL
27535 DJNZ DRAW_SCORE_0 Loop 6 times
27537 LD B,8
27539 LD DE,15744
27542 PUSH HL
DRAW_SCORE_2 27543 LD A,(DE)
27544 RRCA
27545 EX DE,HL
27546 OR (HL)
27547 EX DE,HL
27548 INC DE
27549 LD (HL),A
27550 INC H
27551 DJNZ DRAW_SCORE_2
27553 POP HL
27554 RET
Prev: 27437 Up: Map Next: 27555