Prev: 28487 Up: Map Next: 28627
28602: Input: Compare The Dictionary Word
Used by the routine at Input_TakeTheNextWord.
Compares the typed word with the dictionary word of the same length.
Input_CompareTheDictionaryWord 28602 LD A,(28810) Read *28810.
28605 LD B,A Copy the result into B.
28606 LD A,(28827) Read *28827.
28609 CP B Jump to Input_CompareTheDictionaryWord_PointAtTheTypedWord if the length of the dictionary word is not below the length of the typed word.
28610 JR NC,Input_CompareTheDictionaryWord_PointAtTheTypedWord
28612 LD B,A Copy the result into B.
Input_CompareTheDictionaryWord_PointAtTheTypedWord 28613 LD HL,28794 Point HL at the typed word.
28616 LD DE,28811 Point DE at the dictionary word.
Input_CompareTheDictionaryWord_CompareTheLetters 28619 LD A,(DE) Return if the dictionary word is not the typed word.
28620 CP (HL)
28621 RET NZ
28622 INC DE Step to the next byte of the dictionary word.
28623 INC HL Step to the next byte of the typed word.
28624 DJNZ Input_CompareTheDictionaryWord_CompareTheLetters Loop back to Input_CompareTheDictionaryWord_CompareTheLetters until the length of the dictionary word runs out.
28626 RET Return.
Prev: 28487 Up: Map Next: 28627