Prev: 8E23 Up: Map Next: 8E3D
8E2E: Print Handler: Ink
Sets the INK colour parameter handler. Called on the byte immediately following a 10 (INK) control code. Masks the parameter to the lower three bits (colour 00–07) and writes it into the INK bits (0–2) of the attribute byte at PrintState_Attr.
PrintHandler_Ink 8E2E LD B,$08 B=08 (mask limit for INK colour range 00–07).
8E30 CALL PrintHandler_MaskParam Call PrintHandler_MaskParam to reset PrintState_Handler and mask B to the colour value.
8E33 LD A,($8004) A=*PrintState_Attr (current attribute byte).
8E36 AND %11111000 Clear the INK bits (F8 = keep PAPER, BRIGHT, FLASH).
8E38 OR B Write the new INK colour into bits 0–2.
8E39 LD ($8004),A Write the updated attribute byte back to *PrintState_Attr.
8E3C RET Return.
Prev: 8E23 Up: Map Next: 8E3D