Prev: 8D42 Up: Map Next: 8E2B
8E21: Count a drawn object in the load again and rub it out
Used by the routine at update_objects.
Used by update_objects for an object that was drawn last pass (bit 7 of +$10): an object on the screen weighs two in the load (object_load). Then rubs out its old picture (prepare_erase), which also clears bit 7.
count_and_erase 8E21 LD A,(object_load) One more in the load
8E24 INC A
8E25 LD (object_load),A
8E28 JP prepare_erase Rub out last pass's picture
Prev: 8D42 Up: Map Next: 8E2B