![]() |
Routines |
| Prev: 8906 | Up: Map | Next: 8988 |
|
Used by the routine at HandlerDracula.
Reads the second byte of the entry for a room in RoomAttributes, which is the shape of the frame of the room (see RoomShapeTable).
|
||||||||||||
| GetRoomValue | 897D | LD L,A | Set L to the room. | |||||||||
| 897E | LD H,$00 | Clear the high byte of the room in H. | ||||||||||
| 8980 | LD DE,$A854 | Point DE at the room attribute table at RoomAttributes. | ||||||||||
| 8983 | ADD HL,HL | Double HL, as the entries are two bytes long. | ||||||||||
| 8984 | ADD HL,DE | Find the entry for the room. | ||||||||||
| 8985 | INC HL | Move HL on to the second byte of the entry. | ||||||||||
| 8986 | LD A,(HL) | Fetch the second byte of the entry. | ||||||||||
| 8987 | RET | Return. | ||||||||||
| Prev: 8906 | Up: Map | Next: 8988 |