Prev: B19F Up: Map Next: B1B7
B1AB: Enter Room Above
Used by the routine at MoveActorUp.
Used by MoveActor when an actor has gone off the top of the screen. The actor is put at the bottom of the room above (the room number decreases by 10) without changing its X position.
Input
IX Actor record
Output
D New Y position
EnterRoomAbove B1AB LD D,$BF Set the Y position to the bottom of the play area (BF).
B1AD LD A,(IX+$01) Fetch the room of the actor.
B1B0 SUB $10 Subtract 10 to move to the room above.
B1B2 LD (IX+$01),A Set the new room of the actor.
B1B5 JR EnterRoom Jump to EnterRoom.
Prev: B19F Up: Map Next: B1B7