Prev: 38046 Up: Map Next: 38098
38064: Move Willy into the room above
Used by the routines at 35245 and 36307.
38064 LD A,(33003) Pick up the number of the room above from 33003
38067 LD (33824),A Make it the current room number by copying it to 33824
38070 LD A,(34259) Willy should now appear on the bottom floor of the room, so adjust his attribute buffer coordinates (at 34259) accordingly
38073 AND 31
38075 ADD A,160
38077 LD (34259),A
38080 LD A,93
38082 LD (34260),A
38085 LD A,208 Adjust Willy's y-coordinate (at 34255) as well
38087 LD (34255),A
38090 XOR A Reset the airborne status indicator at 34257
38091 LD (34257),A
38094 POP HL Drop the return address (either 35281 or 35289, in the main loop) from the stack
38095 JP 35090 Draw the room and re-enter the main loop
Prev: 38046 Up: Map Next: 38098