![]() |
Routines |
| Prev: 46187 | Up: Map | Next: 46358 |
|
Used by the routines at HandlerDisplayRoomExits and Action_Down.
Point at the current room's six exit bytes.
|
||||||||
| GetRoomPointer | 46339 | LD A,(44749) | Read the current room into A. | |||||
| 46342 | LD E,A | Turn the room number into an offset of six bytes in the room map. | ||||||
| 46343 | LD D,0 | |||||||
| 46345 | LD H,D | |||||||
| 46346 | LD L,E | |||||||
| 46347 | ADD HL,DE | |||||||
| 46348 | ADD HL,DE | |||||||
| 46349 | ADD HL,DE | |||||||
| 46350 | ADD HL,DE | |||||||
| 46351 | ADD HL,DE | |||||||
| 46352 | LD DE,(44756) | Load the register pair from the room-map pointer. | ||||||
| 46356 | ADD HL,DE | Point at this room's exits. | ||||||
| 46357 | RET | Return. | ||||||
|
View the equivalent code in;
|
||||||||
| Prev: 46187 | Up: Map | Next: 46358 |