| The Hobbit (v1.0) | Routines |
| Prev: 7ED3 | Up: Map | Next: 7EF5 |
|
Counts the prepositions in the current noun phrase ($7C44) and stores the token BC in the first empty preposition slot ($7C45 or $7C47). A third preposition is a syntax error (7FEE).
|
||||
| 7EE6 | LD HL,$7C44 | HL = the count of prepositions seen in this noun phrase so far | ||
| 7EE9 | INC (HL) | One more | ||
| 7EEA | LD A,(HL) | |||
| 7EEB | CP $03 | Is that three or more? | ||
| 7EED | JP NC,$7FEE | A third preposition makes no sense: syntax error | ||
| 7EF0 | LD HL,$7C45 | Otherwise HL = the first or second preposition slot... | ||
| 7EF3 | JR $7ED6 | ...and store it there, sharing the adjective-storing code above | ||
| Prev: 7ED3 | Up: Map | Next: 7EF5 |