![]() |
Routines |
| Prev: 6F47 | Up: Map | Next: 6FD3 |
|
Used by the routine at Input_TakeTheNextWord.
Compares the typed word with the dictionary word of the same length.
|
||||
| Input_CompareTheDictionaryWord | 6FBA | LD A,($708A) | Read *708A. | |
| 6FBD | LD B,A | Copy the result into B. | ||
| 6FBE | LD A,($709B) | Read *709B. | ||
| 6FC1 | CP B | Jump to Input_CompareTheDictionaryWord_PointAtTheTypedWord if the length of the dictionary word is not below the length of the typed word. | ||
| 6FC2 | JR NC,Input_CompareTheDictionaryWord_PointAtTheTypedWord | |||
| 6FC4 | LD B,A | Copy the result into B. | ||
| Input_CompareTheDictionaryWord_PointAtTheTypedWord | 6FC5 | LD HL,$707A | Point HL at the typed word. | |
| 6FC8 | LD DE,$708B | Point DE at the dictionary word. | ||
| Input_CompareTheDictionaryWord_CompareTheLetters | 6FCB | LD A,(DE) | Return if the dictionary word is not the typed word. | |
| 6FCC | CP (HL) | |||
| 6FCD | RET NZ | |||
| 6FCE | INC DE | Step to the next byte of the dictionary word. | ||
| 6FCF | INC HL | Step to the next byte of the typed word. | ||
| 6FD0 | DJNZ Input_CompareTheDictionaryWord_CompareTheLetters | Loop back to Input_CompareTheDictionaryWord_CompareTheLetters until the length of the dictionary word runs out. | ||
| 6FD2 | RET | Return. | ||
| Prev: 6F47 | Up: Map | Next: 6FD3 |