Prev: C8CA Up: Map Next: C962
C949: Flash Menu Options
Used by the routine at GameMenu.
Makes the line of the menu for the selected control method flash, and the line for directional control if that is on.
Flash the chosen control method.
FlashMenuOptions C949 LD HL,$C963 Point HL at MenuLineAttributes_ControlMethods.
C94C LD A,($BBB0) Fetch GameOptions.
C94F RRCA Move the method to bits 0 and 1.
C950 AND %00000011 Keep only bits 0 and 1.
C952 LD B,$04 Set a counter of 04 lines.
C954 CALL SetFlashingAttribute Call SetFlashingAttribute.
Flash directional control if it is on.
C957 RES 7,(HL) Reset bit 7 of the attribute.
C959 LD A,($BBB0) Fetch GameOptions.
C95C AND %00001000 Keep only bit 3.
C95E RET Z Return if it is off.
C95F SET 7,(HL) Set bit 7 of the attribute.
C961 RET Return.
View the equivalent code in;
Prev: C8CA Up: Map Next: C962