![]() |
Routines |
| Prev: F0DE | Up: Map | Next: F107 |
|
Used by the routines at Display_High_Score_Entry_Screen and Save_Or_Load_High_Scores.
Advances the border colour cycle one step and redraws the attribute border frame. Reads the current step from Border_Colour_Step, decrements it (wrapping at 0 back to 7), looks up the outer/inner attribute pair from Table_Border_Colour_Pairs, and calls Fill_Border_Attributes to repaint the border.
|
||||
| Cycle_Border_Colour | F0EE | LD A,($C508) | Read and decrement the border colour step from Border_Colour_Step. | |
| F0F1 | DEC A | |||
| F0F2 | AND %00000111 | Mask the step to the range 0–7. | ||
| F0F4 | LD ($C508),A | Store the updated step back to Border_Colour_Step. | ||
| F0F7 | SLA A | Double the step to a word offset and index into the colour pair table at Table_Border_Colour_Pairs. | ||
| F0F9 | LD C,A | |||
| F0FA | LD B,$00 | |||
| F0FC | LD HL,$F0DE | |||
| F0FF | ADD HL,BC | |||
| F100 | LD D,(HL) | Load the outer (D) and inner (E) attribute bytes from the table. | ||
| F101 | INC HL | |||
| F102 | LD E,(HL) | |||
| F103 | CALL Fill_Border_Attributes | Redraw the screen border with the new colour pair via Fill_Border_Attributes. | ||
| F106 | RET | Return. | ||
| Prev: F0DE | Up: Map | Next: F107 |