Prev: 46184 Up: Map Next: 46240
46211: Copy The Character Into The Display
Used by the routine at ProcessDisplayPointer.
Returns at once when the count is zero. Otherwise copies this character's id and script position into the display.
CopyCharacterDisplay 46211 XOR A Return at once if the count in B is zero.
46212 CP B
46213 RET Z
46214 LD D,0 Step to the next schedule entry.
46216 PUSH IY
46218 ADD IY,DE
46220 LD A,(IY+0) Copy this character's id to the byte at HL.
46223 LD (HL),A
46224 INC HL Step to the next entry, read the script position and store it at the display flag.
46225 LD A,(IY+1)
46228 LD (HL),A
46229 DEC HL Step back one byte.
46230 OR (IY+0) Merge this character's id into the result.
46233 POP IY Restore the schedule entry from the stack.
46235 RET Z Return when the character id and the script position are both clear.
46236 DEC B Count down one and step past this entry.
46237 INC HL
46238 INC HL
46239 RET Return.
View the equivalent code in;
Prev: 46184 Up: Map Next: 46240