Prev: A170 Up: Map Next: A19F
A18D: Run a sky object's update routine
Used by the routine at update_objects.
Jumps to the update routine for the object in record IX, chosen by its graphic number (+0), which for the sky objects runs from $13 to $1E: the first twelve words of run_sky_object_handler's table object_handlers are their handlers in that order. Called once for each live record of the nine sky-object records at object_records every pass (update_objects), between the setting up of its erase (prepare_erase) and the drawing (prepare_draw and draw_object_images, which the handlers end with).
Input
IX The object's record
run_sky_object_handler A18D LD A,(IX+$00) Index the handler table by graphic number less $13, and jump
A190 SUB $13
A192 LD E,A
A193 LD D,$00
A195 LD HL,object_handlers
A198 ADD HL,DE
A199 ADD HL,DE
A19A LD A,(HL)
A19B INC HL
A19C LD H,(HL)
A19D LD L,A
A19E JP (HL)
Prev: A170 Up: Map Next: A19F