![]() |
Routines |
| Prev: 28227 | Up: Map | Next: 28287 |
|
Used by the routines at PlotShape, ChangePictureColour, BrightenAttributes, ShapeIfPresent, DrawPatched, DrawFixedShift, DrawFromOrigin, ResetOrigin, ShapeForObject, HorizontalRun, VerticalRun, DrawVertical, FixedVertical and PaintAttributeRun.
Reads the next record byte. 255 ends it. 254 draws with a fixed shift, 253 changes one colour to another in the ink and paper, 252 paints a run of attributes, 251 brightens the picture, 250 draws a fixed vertical stroke, and 249 draws another room's record. Any other byte goes to DispatchShape.
|
||||
| PictureRecord | 28243 | LD A,(IX+0) | Fetch the next record byte. | |
|
Opcode 255 ends the record.
|
||||
| 28246 | INC A | Return if it is the terminator 255. | ||
| 28247 | RET Z | |||
|
Opcode 254 draws with the shift forced to 12.
|
||||
| 28248 | INC A | Jump to DrawFixedShift if it is 254. | ||
| 28249 | JP Z,DrawFixedShift | |||
|
Opcode 253 changes one colour to another.
|
||||
| 28252 | INC A | Jump to ChangePictureColour if it is 253. | ||
| 28253 | JP Z,ChangePictureColour | |||
|
Opcode 252 paints a run of attributes.
|
||||
| 28256 | INC A | Jump to PaintAttributeRun if it is 252. | ||
| 28257 | JP Z,PaintAttributeRun | |||
|
Opcode 251 sets bright on every attribute.
|
||||
| 28260 | INC A | Jump to BrightenAttributes if it is 251. | ||
| 28261 | JP Z,BrightenAttributes | |||
|
Opcode 250 draws a fixed vertical stroke.
|
||||
| 28264 | INC A | Jump to FixedVertical if it is 250. | ||
| 28265 | JP Z,FixedVertical | |||
|
Any other opcode except 249 goes to DispatchShape.
|
||||
| 28268 | INC A | Jump to DispatchShape if it is not 249. | ||
| 28269 | JR NZ,DispatchShape | |||
|
Opcode 249 draws another room's picture record.
|
||||
| 28271 | INC IX | Advance the record pointer. | ||
| 28273 | LD A,(IX+0) | Fetch the room number. | ||
| 28276 | PUSH IX | Stash the record pointer on the stack. | ||
| 28278 | CALL FindPictureRecord | Call FindPictureRecord. | ||
| 28281 | POP IX | Restore the record pointer from the stack. | ||
| 28283 | INC IX | Advance the record pointer. | ||
| 28285 | JR PictureRecord | Jump to PictureRecord. | ||
| Prev: 28227 | Up: Map | Next: 28287 |