Prev: 6E43 Up: Map Next: 6E7F
6E53: Interpret Picture Record
Reads the next record byte. FF ends it. FE draws with a fixed shift, FD changes one colour to another in the ink and paper, FC paints a run of attributes, FB brightens the picture, FA draws a fixed vertical stroke, and F9 draws another room's record. Any other byte goes to DispatchShape.
PictureRecord 6E53 LD A,(IX+$00) Fetch the next record byte.
Opcode FF ends the record.
6E56 INC A Return if it is the terminator FF.
6E57 RET Z
Opcode FE draws with the shift forced to 0C.
6E58 INC A Jump to DrawFixedShift if it is FE.
6E59 JP Z,DrawFixedShift
Opcode FD changes one colour to another.
6E5C INC A Jump to ChangePictureColour if it is FD.
6E5D JP Z,ChangePictureColour
Opcode FC paints a run of attributes.
6E60 INC A Jump to PaintAttributeRun if it is FC.
6E61 JP Z,PaintAttributeRun
Opcode FB sets bright on every attribute.
6E64 INC A Jump to BrightenAttributes if it is FB.
6E65 JP Z,BrightenAttributes
Opcode FA draws a fixed vertical stroke.
6E68 INC A Jump to FixedVertical if it is FA.
6E69 JP Z,FixedVertical
Any other opcode except F9 goes to DispatchShape.
6E6C INC A Jump to DispatchShape if it is not F9.
6E6D JR NZ,DispatchShape
Opcode F9 draws another room's picture record.
6E6F INC IX Advance the record pointer.
6E71 LD A,(IX+$00) Fetch the room number.
6E74 PUSH IX Stash the record pointer on the stack.
6E76 CALL FindPictureRecord Call FindPictureRecord.
6E79 POP IX Restore the record pointer from the stack.
6E7B INC IX Advance the record pointer.
6E7D JR PictureRecord Jump to PictureRecord.
Prev: 6E43 Up: Map Next: 6E7F