![]()  | 
Routines | 
| Prev: AC02 | Up: Map | Next: ACAD | 
| 
 
Used by the routines at Handler_RoomExits and MovePlayer.
 
  | 
||||||||
| GetRoomPointer | AC9A | LD A,($A7C3) | Load the *CurrentRoom into DE. | |||||
| AC9D | LD E,A | |||||||
| AC9E | LD D,$00 | |||||||
| ACA0 | LD H,D | Copy it into HL. | ||||||
| ACA1 | LD L,E | |||||||
| ACA2 | ADD HL,DE | Mulitply by 06. | ||||||
| ACA3 | ADD HL,DE | |||||||
| ACA4 | ADD HL,DE | |||||||
| ACA5 | ADD HL,DE | |||||||
| ACA6 | ADD HL,DE | |||||||
| ACA7 | LD DE,($A7CA) | Add the result to the base address *Pointer_RoomMap, stored in HL. | ||||||
| ACAB | ADD HL,DE | |||||||
| ACAC | RET | Return. | ||||||
| 
 
View the equivalent code in The Jewels Of Babylon.
 
 | 
||||||||
| Prev: AC02 | Up: Map | Next: ACAD |