![]() |
Routines |
| Prev: B46B | Up: Map | Next: B516 |
|
Used by the routines at HandlerDisplayRoomExits and Action_Down.
Point at the current room's six exit bytes.
|
||||||||
| GetRoomPointer | B503 | LD A,($AECD) | Read the current room into A. | |||||
| B506 | LD E,A | Turn the room number into an offset of six bytes in the room map. | ||||||
| B507 | LD D,$00 | |||||||
| B509 | LD H,D | |||||||
| B50A | LD L,E | |||||||
| B50B | ADD HL,DE | |||||||
| B50C | ADD HL,DE | |||||||
| B50D | ADD HL,DE | |||||||
| B50E | ADD HL,DE | |||||||
| B50F | ADD HL,DE | |||||||
| B510 | LD DE,($AED4) | Load the register pair from the room-map pointer. | ||||||
| B514 | ADD HL,DE | Point at this room's exits. | ||||||
| B515 | RET | Return. | ||||||
|
View the equivalent code in;
|
||||||||
| Prev: B46B | Up: Map | Next: B516 |