Prev: 6E39 Up: Map Next: 6E53
6E43: Find Room Picture Record
Used by the routine at PictureRecord.
Walks RoomRecords, whose records are separated by FF, until it reaches the current room. Rooms from 60 up run on into bank 0 at Picture_IcyThroneHall.
Input
A Room number
Output
IX Picture record for that room
FindPictureRecord 6E43 LD IX,$B798 Point IX at RoomRecords.
6E47 LD B,A Copy the room number into the counter.
6E48 LD A,$FF Load the record terminator.
Skip bytes until the next terminator.
FindPictureRecord_Skip 6E4A CP (IX+$00) Advance until this record ends.
6E4D INC IX
6E4F JR NZ,FindPictureRecord_Skip
6E51 DJNZ FindPictureRecord_Skip Jump to FindPictureRecord_Skip until this is the wanted room.
Continue on to PictureRecord.
Prev: 6E39 Up: Map Next: 6E53