Prev: 6176 Up: Map Next: 61B4
619E: Flash Player Label
Used by the routine at GamePlayEntry.
Sets the FLASH attribute on the three cells of the active player's "1UP" or "2UP" label in the banner. Called while the "get ready" delay at PlayDelay_Counter is running.
Before After
flash-label-before flash-label-after
FlashPlayerLabel 619E LD A,($5E1E) Fetch the current player from Current_Player.
61A1 AND A Jump to FlashPlayerLabel_2UP if the current player is not 00 (2UP).
61A2 JR NZ,FlashPlayerLabel_2UP
61A4 LD HL,$0018 HL=0018 (the position of "1UP").
This entry point is used by the routine at StopFlashingPlayerLabel.
Set the FLASH bit on each of the three attribute cells.
FlashPlayerLabel_Set 61A7 CALL AttributeAddress Convert the position to an attribute buffer address using AttributeAddress.
61AA LD B,$03 Set the cell counter to 03 (the three characters of the label).
FlashPlayerLabel_Loop 61AC LD A,(HL) Fetch the attribute of the cell.
61AD OR %10000000 Set bit 7 (FLASH).
61AF LD (HL),A Write the attribute back.
61B0 INC HL Move onto the next cell.
61B1 DJNZ FlashPlayerLabel_Loop Decrease the cell counter by one and loop back to FlashPlayerLabel_Loop until all three cells are flashing.
61B3 RET Return.
Prev: 6176 Up: Map Next: 61B4