Prev: 51695 Up: Map Next: 51755
51739: Set Flashing Attribute
Used by the routine at FlashMenuOptions.
Sets bit 7 of the attribute of one line of text in a list of lines, and resets it for the other lines.
Input
A The number of the line
B Number of lines
HL Address of the attributes
Flash one line and steady the rest.
SetFlashingAttribute 51739 AND A Jump to FlashChosenLine_NoFlash if the line is not the first.
51740 JR NZ,FlashChosenLine_NoFlash
FlashChosenLine_Flash 51742 SET 7,(HL) Set bit 7 of the attribute.
51744 JR FlashChosenLine_Skip Jump to FlashChosenLine_Skip.
FlashChosenLine_Next 51746 DEC A Jump to FlashChosenLine_Flash if this is the line.
51747 JR Z,FlashChosenLine_Flash
FlashChosenLine_NoFlash 51749 RES 7,(HL) Reset bit 7 of the attribute.
FlashChosenLine_Skip 51751 INC HL Move on to the next line.
51752 DJNZ FlashChosenLine_Next Jump to FlashChosenLine_Next until all of the lines have been done.
51754 RET Return.
View the equivalent code in;
Prev: 51695 Up: Map Next: 51755