![]() |
Routines |
| Prev: 36387 | Up: Map | Next: 36413 |
|
Sets the INK colour parameter handler. Called on the byte immediately following a 16 (INK) control code. Masks the parameter to the lower three bits (colour 0–7) and writes it into the INK bits (0–2) of the attribute byte at PrintState_Attr.
|
||||
| PrintHandler_Ink | 36398 | LD B,8 | B=8 (mask limit for INK colour range 0–7). | |
| 36400 | CALL PrintHandler_MaskParam | Call PrintHandler_MaskParam to reset PrintState_Handler and mask B to the colour value. | ||
| 36403 | LD A,(32772) | A=*PrintState_Attr (current attribute byte). | ||
| 36406 | AND %11111000 | Clear the INK bits (248 = keep PAPER, BRIGHT, FLASH). | ||
| 36408 | OR B | Write the new INK colour into bits 0–2. | ||
| 36409 | LD (32772),A | Write the updated attribute byte back to *PrintState_Attr. | ||
| 36412 | RET | Return. | ||
| Prev: 36387 | Up: Map | Next: 36413 |