![]()  | 
Routines | 
| Prev: 41786 | Up: Map | Next: 42031 | 
| 
 
Used by the routines at Handler_RoomExits and MovePlayer.
 
  | 
||||||||
| GetRoomPointer | 42012 | PUSH DE | Stash DE on the stack. | |||||
| 42013 | LD A,(41222) | Load the *CurrentRoom into HL. | ||||||
| 42016 | LD L,A | |||||||
| 42017 | LD H,0 | |||||||
| 42019 | LD DE,6 | DE=0006. | ||||||
| 42022 | CALL 41325 | Call 41325. | ||||||
| 42025 | LD DE,47325 | Add the result to the base address Table_RoomMap and store the result in HL. | ||||||
| 42028 | ADD HL,DE | |||||||
| 42029 | POP DE | Restore DE from the stack. | ||||||
| 42030 | RET | Return. | ||||||
| 
 
View the equivalent code in;  
  | 
||||||||
| Prev: 41786 | Up: Map | Next: 42031 |