Prev: 28217 Up: Map Next: 28243
28227: Find Room Picture Record
Used by the routine at PictureRecord.
Walks RoomRecords, whose records are separated by 255, until it reaches the current room. Rooms from 96 up run on into bank 0 at Picture_IcyThroneHall.
Input
A Room number
Output
IX Picture record for that room
FindPictureRecord 28227 LD IX,47000 Point IX at RoomRecords.
28231 LD B,A Copy the room number into the counter.
28232 LD A,255 Load the record terminator.
Skip bytes until the next terminator.
FindPictureRecord_Skip 28234 CP (IX+0) Advance until this record ends.
28237 INC IX
28239 JR NZ,FindPictureRecord_Skip
28241 DJNZ FindPictureRecord_Skip Jump to FindPictureRecord_Skip until this is the wanted room.
Continue on to PictureRecord.
Prev: 28217 Up: Map Next: 28243