Routines
| Prev: D6CE | Up: Map | Next: D714 |
D6E5: Say 'I DO NOT KNOW THE WORD "..."'
|
Quotes the unknown word from the typed line (6859).
|
||||||||
| D6E5 | LD A,$01 | Load A with $01 - Quoted printing on ($A027 = 1) | ||||||
| D6E7 | LD ($A027),A | Store A in $A027 in "Game variables" | ||||||
| D6EA | LD HL,$6859 | |||||||
| D6ED | CALL $A59F | |||||||
| D6F0 | LD HL,($D6BD) | Read D6BD in "A flag of the player's script step, and..." into HL - Mark the word's token (D6BD) as class $C0 | ||||||
| D6F3 | LD (HL),$C0 | Store $C0 at the address HL points to | ||||||
| D6F5 | LD HL,($A029) | HL = the unknown word in the typed line ($A029) | ||||||
| D6F8 | LD A,(HL) | Read the byte HL points at into A - Print it a character at a time, a '.' as a space... | ||||||
| D6F9 | CP $2E | Compare A with $2E | ||||||
| D6FB | JR NZ,$D6FF | If A differs from $2E, skip ahead to D6FF | ||||||
| D6FD | LD A,$20 | Load A with $20 | ||||||
| D6FF | CALL $A9B7 | Call the routine "Print character A, a word at a time (word wrap)" (A9B7) | ||||||
| D702 | INC HL | Step HL on to the next byte | ||||||
| D703 | CP $20 | Compare A with $20 - ...up to the next space | ||||||
| D705 | JR NZ,$D6F8 | If A differs from $20, go back to D6F8 | ||||||
| D707 | LD A,$22 | Load A with $22 - Closing quote | ||||||
| D709 | CALL $A9B7 | Call the routine "Print character A, a word at a time (word wrap)" (A9B7) | ||||||
| D70C | CALL $A2A2 | End the line (A2A2) | ||||||
| D70F | XOR A | Clear A to zero (and the carry flag) - Quoted printing off ($A027 = 0) | ||||||
| D710 | LD ($A027),A | Store A in $A027 in "Game variables" | ||||||
| D713 | RET | Return to the caller | ||||||
| Prev: D6CE | Up: Map | Next: D714 |