Prev: 6EEF Up: Map Next: 6F44
6F2C: Change Picture Colour
Used by the routine at PictureRecord.
Used for picture record FD. Reads two colours from the record and changes one colour to another in the ink and paper: every ink of the first colour across the picture becomes the second, and so does every paper.
ChangePictureColour 6F2C INC IX Advance the record pointer.
6F2E LD A,(IX+$00) Fetch the source colour.
6F31 AND %00000111 Keep only bits 0-2.
6F33 LD C,A That colour is C.
6F34 INC IX Advance the record pointer.
6F36 LD A,(IX+$00) Fetch the destination colour.
6F39 AND %00000111 Keep only bits 0-2.
6F3B LD L,A That colour is L.
Recolour the buffer.
6F3C CALL ChangeInkAndPaperColour Call ChangeInkAndPaperColour.
6F3F INC IX Advance the record pointer.
6F41 JP PictureRecord Jump to PictureRecord.
Prev: 6EEF Up: Map Next: 6F44