Prev: 39717 Up: Map Next: 39807
39760: Place Character Beside Match
Used by the routine at ReadRoomDisplayParameter.
Copies the current character beside the matched object, or prints the token at 26921+779.
PlaceCharacterBesideMatch 39760 LD A,(41014) Read the current character, count down one and read the current character record.
39763 DEC A
39764 LD IY,(40983)
39768 LD (IY+1),A Store this character in the record and at 58054, then call FetchObjectDataPointer to look the object up.
39771 LD (58054),A
39774 CALL FetchObjectDataPointer
39777 LD A,(IX+15) Store the character attribute.
39780 LD (IY+15),A
39783 LD (40970),A Record the current character attribute.
39786 LD A,(41012) Call SearchPairTable to search pair table.
39789 LD C,A
39790 LD A,(40970)
39793 CALL SearchPairTable
39796 RET Z Return if SearchPairTable finds the pair.
39797 POP HL Take the character busy message, then call PrintTextAndHandleControlCharacters to print the character busy message.
39798 LD HL,27700
39801 CALL PrintTextAndHandleControlCharacters
39804 OR %00000001 Reset the zero flag.
39806 RET Return.
Prev: 39717 Up: Map Next: 39807