Prev: 7CFC Up: Map Next: 7D54
7D17: Try the next object that fits the instrument's name
Used by the routine at MATCH_AND_TRY.
The same for the second object, the mode from bits 0-1 of FLAGS_LAST_WORDS; PATTERN_OPTION is set from the pattern on the way out.
NEXT_INSTRUMENT 7D17 XOR A Where the search had got to; a place?
7D18 LD (PATTERN_OPTION),A
7D1B PUSH IY
7D1D LD IX,(INSTRUMENT_SEARCH)
7D21 LD A,(INSTRUMENT_IS_PLACE)
7D24 DEC A
7D25 JR Z,NEXT_INSTRUMENT_1
7D27 LD IY,FIND_NAMED_OBJECT An object, in the pattern's mode
7D2B LD A,(FLAGS_LAST_WORDS)
7D2E AND $03
7D30 LD (FIND_MODE),A
7D33 CALL TRY_INSTRUMENTS
7D36 CP $FF
NEXT_INSTRUMENT_0 7D38 LD (INSTRUMENT_SEARCH),IX Keep the place; PATTERN_OPTION from the pattern
7D3C POP IY
7D3E PUSH AF
7D3F LD A,(FLAGS_FIRST_WORDS)
7D42 AND $01
7D44 LD (PATTERN_OPTION),A
7D47 POP AF
7D48 RET
NEXT_INSTRUMENT_1 7D49 LD IY,ROOM_BY_NAME A place
7D4D CALL TRY_INSTRUMENTS
7D50 CP $FF
7D52 JR NEXT_INSTRUMENT_0
Prev: 7CFC Up: Map Next: 7D54