Prev: 35078 Up: Map Next: 35208
35197: Get Room Value
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).
Input
A The room
Output
A The shape of the room
GetRoomValue 35197 LD L,A Set L to the room.
35198 LD H,0 Clear the high byte of the room in H.
35200 LD DE,43092 Point DE at the room attribute table at RoomAttributes.
35203 ADD HL,HL Double HL, as the entries are two bytes long.
35204 ADD HL,DE Find the entry for the room.
35205 INC HL Move HL on to the second byte of the entry.
35206 LD A,(HL) Fetch the second byte of the entry.
35207 RET Return.
Prev: 35078 Up: Map Next: 35208