![]() |
Routines |
Prev: C26A | Up: Map | Next: C315 |
Used by the routines at Handler_RoomExits and MovePlayer.
|
||||||||
GetRoomPointer | C302 | LD A,($BCCB) | Load the *CurrentRoom into DE. | |||||
C305 | LD E,A | |||||||
C306 | LD D,$00 | |||||||
C308 | LD H,D | Copy it into HL. | ||||||
C309 | LD L,E | |||||||
C30A | ADD HL,DE | Mulitply by 06. | ||||||
C30B | ADD HL,DE | |||||||
C30C | ADD HL,DE | |||||||
C30D | ADD HL,DE | |||||||
C30E | ADD HL,DE | |||||||
C30F | LD DE,($BD10) | Add the result to the base address *Pointer_RoomMap, stored in HL. | ||||||
C313 | ADD HL,DE | |||||||
C314 | RET | Return. |
Prev: C26A | Up: Map | Next: C315 |