|  | Routines | 
| Prev: 38936 | Up: Map | Next: 38967 | 
|  | ||||
| ControlCode_SetBrightBit | 38945 | LD HL,63518 | Set a pointer to Print_AttributeVariable in HL. | |
| 38948 | LD A,(HL) | Fetch the current print attribute colour and store it in A. | ||
| 38949 | AND %10111111 | Mask off the current BRIGHT bit. | ||
| 38951 | LD (HL),A | Write the value back to *Print_AttributeVariable. | ||
| 38952 | LD A,(63500) | Fetch the new BRIGHT value from *PrintVariable_01. | ||
| 38955 | CP 2 | Jump to Helper_Return if the new BRIGHT value is invalid (2 or higher), valid values are either 0 or 1. | ||
| 38957 | JP NC,Helper_Return | |||
| 38960 | RRCA | Shift the value into bit 6 so it applies for BRIGHT. | ||
| 38961 | RRCA | |||
| 38962 | OR (HL) | Set the new BRIGHT value with the current print attribute colour held by *HL. | ||
| 38963 | LD (HL),A | Write the updated value back to *Print_AttributeVariable. | ||
| 38964 | JP ControlCode_Return_1 | Jump to ControlCode_Return_1. | ||
| Prev: 38936 | Up: Map | Next: 38967 |