Prev: 7E6C Up: Map Next: 7EE6
7ED3: Parser: store an adjective
Stores the adjective token BC in the first empty adjective slot of the noun phrase buffer ($7C4B or $7C4D). If both are full, it is a syntax error (7FEE).
7ED3 LD HL,$7C4B HL = the first adjective slot of the noun phrase being built
This entry point is used by the routine at 7EE6.
7ED6 LD A,(HL) Is it still empty?
7ED7 INC HL
7ED8 OR (HL)
7ED9 JR Z,$7EE2 Yes: use this slot
7EDB INC HL No: try the second adjective slot instead
7EDC LD A,(HL)
7EDD INC HL
7EDE OR (HL)
7EDF JP NZ,$7FEE That is full too - a third adjective makes no sense: syntax error
7EE2 LD (HL),B Store the adjective's high byte...
7EE3 DEC HL
7EE4 LD (HL),C ...and its low byte
7EE5 RET
Prev: 7E6C Up: Map Next: 7EE6