Prev: B187 Up: Map Next: B1AB
B19F: Enter Room Right
Used by the routine at MoveActor.
Used by MoveActor when an actor has gone off the right of the screen. The actor is put at the left of the room to the right (the room number is one more, but the room stays in the same row of the map).
Input
IX Actor record
Output
E New X position
EnterRoomRight B19F LD E,$00 Set the X position to the left edge of the screen (00).
B1A1 LD A,(IX+$01) Fetch the room of the actor.
B1A4 LD C,A Stash the room in C.
B1A5 INC A Move to the room on the right.
B1A6 LD (IX+$01),A Set the new room of the actor.
B1A9 JR EnterRoomLeft_Row Jump to EnterRoomLeft_Row.
Prev: B187 Up: Map Next: B1AB