Prev: E909 Up: Map Next: E954
E943: Graphic Layout Routine: (F6) Jump To Randomly Selected Address
Jump to one of the following graphic-layout addresses chosen uniformly at random.
GraphicLayoutRoutine_JumpRandomAddress E943 LD A,(IX+$00) Fetch the random-maximum parameter from the layout byte at IX.
E946 INC IX Advance IX past the graphic-layout operand byte.
E948 CALL PseudoRandom Call PseudoRandom to pick a pseudo-random value.
This entry point is used by the routine at GraphicLayoutRoutine_JumpUsingCarriedWidth.
Index the random-address list by A×02 and jump via the F8 handler at GraphicLayoutRoutine_JumpGraphicAddress.
GraphicLayout_ContinueAfterTile E94B ADD A,A Double A to form a word index into the table.
E94C LD C,A Keep the index in C.
E94D LD B,$00 Load B with 00.
E94F ADD IX,BC IX+=BC.
E951 JP GraphicLayoutRoutine_JumpGraphicAddress Jump to GraphicLayoutRoutine_JumpGraphicAddress to graphic Layout Routine: (F8) Jump To Graphic Layout Address.
View the equivalent code in;
Prev: E909 Up: Map Next: E954