Prev: 28243 Up: Map Next: 28353
28287: Dispatch Picture Opcode
Used by the routine at PictureRecord.
Opcodes 248 to 238 jump to their own drawers. A smaller byte is a shape plotted by the routine below.
DispatchShape 28287 LD A,(IX+0) Fetch the opcode.
Opcode 248 draws the following shape only when that object is here.
28290 CP 248 Jump to ShapeIfPresent if it is 248.
28292 JP Z,ShapeIfPresent
Opcode 247 plots the following shape after writing 12 to ShapeSuppressed.
28295 CP 247 Jump to OpcodeF7 if it is 247.
28297 JP Z,OpcodeF7
Opcode 246 plots the following shape after writing 8 to ShapeSuppressed.
28300 CP 246 Jump to OpcodeF6 if it is 246.
28302 JP Z,OpcodeF6
Opcode 245 plots the following shape after writing 4 to ShapeSuppressed.
28305 CP 245 Jump to OpcodeF5 if it is 245.
28307 JP Z,OpcodeF5
Opcode 244 continues the record only when that object is here.
28310 CP 244 Jump to ShapeForObject if it is 244.
28312 JP Z,ShapeForObject
Opcode 243 resets the origin and copies the default rectangle.
28315 CP 243 Jump to ResetOrigin if it is 243.
28317 JP Z,ResetOrigin
Opcode 242 patches the shift and draws.
28320 CP 242 Jump to DrawPatched if it is 242.
28322 JP Z,DrawPatched
Opcode 241 sets the origin and draws.
28325 CP 241 Jump to DrawFromOrigin if it is 241.
28327 JP Z,DrawFromOrigin
Opcode 240 draws a horizontal run of pixels.
28330 CP 240 Jump to HorizontalRun if it is 240.
28332 JP Z,HorizontalRun
Opcode 239 draws a run shifted across the pixel columns.
28335 CP 239 Jump to VerticalRun if it is 239.
28337 JP Z,VerticalRun
Opcode 238 patches the vertical shift.
28340 CP 238 Jump to DrawVertical if it is 238.
28342 JP Z,DrawVertical
A smaller byte is a shape, plotted below.
28345 CP 236 This compare with 236 is unused.
28347 LD B,A Copy the opcode into B.
28348 XOR A Clear A so an ordinary shape stores 0.
This entry point is used by the routines at OpcodeF7, OpcodeF5 and OpcodeF6.
Store that byte and plot the shape.
DispatchShape_Flag 28349 LD (28398),A Write A to ShapeSuppressed.
28352 LD A,B Restore the opcode.
Continue on to PlotShape.
Prev: 28243 Up: Map Next: 28353