Prev: 28399 Up: Map Next: 28484
28460: Change Picture Colour
Used by the routine at PictureRecord.
Used for picture record 253. 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 28460 INC IX Advance the record pointer.
28462 LD A,(IX+0) Fetch the source colour.
28465 AND %00000111 Keep only bits 0-2.
28467 LD C,A That colour is C.
28468 INC IX Advance the record pointer.
28470 LD A,(IX+0) Fetch the destination colour.
28473 AND %00000111 Keep only bits 0-2.
28475 LD L,A That colour is L.
Recolour the buffer.
28476 CALL ChangeInkAndPaperColour Call ChangeInkAndPaperColour.
28479 INC IX Advance the record pointer.
28481 JP PictureRecord Jump to PictureRecord.
Prev: 28399 Up: Map Next: 28484