Prev: DB56 Up: Map Next: DB84
DB59: Test For A Comma
Used by the routine at ParseATime.
Returns at once for a comma, and also accepts a blank as the end of a word.
TestComma DB59 CP $2C Return if the input is 2C.
DB5B RET Z
DB5C CP $20 See whether the character just read is a space.
DB5E RET Return.
This entry point is used by the routine at ParseATime.
Step back one character and return F0.
TestComma_TestStepOneByte DB5F DEC HL Step back one entry.
This entry point is used by the routine at ParseATime.
TestComma_0 DB60 XOR A Set the zero flag.
DB61 LD A,$F0 Leave F0 as the result.
DB63 RET Return.
DB64 DEFB $00 First number. Written by DB6B and StartParsedNumber, and read by StartParsedNumber_CombineNumbers.
DB65 DEFB $00 Second number. Written by DB6B, StartParsedNumber_ClearSecondThird, DB94 and DBA8. Read by DBCE.
DB66 DEFB $00 Third number. Written by DB72, StartParsedNumber_ClearSecondThird, DB9E and DBB7. Read by DBDB.
This entry point is used by the routine at TestCommonWord.
TestComma_1 DB67 INC HL Step to the next character and call ParseInputNumber to read a number.
DB68 CALL ParseInputNumber
DB6B LD ($DB64),A Store this number as the first number and clear the second number.
DB6E XOR A
DB6F LD ($DB65),A
DB72 LD ($DB66),A Clear the third number.
DB75 INC HL Jump to StartParsedNumber_CombineNumbers if the next character is not a digit.
DB76 LD A,(HL)
DB77 CALL TestDigit
DB7A DEC HL
DB7B JR C,StartParsedNumber_CombineNumbers
DB7D INC HL Read the next number into B and continue at StartParsedNumber_ClearSecondThird.
DB7E CALL ParseInputNumber
DB81 LD B,A
DB82 JR StartParsedNumber_ClearSecondThird
Prev: DB56 Up: Map Next: DB84