![]() |
Routines |
| Prev: 56150 | Up: Map | Next: 56196 |
|
Used by the routine at ParseATime.
Returns at once for a comma, and also accepts a blank as the end of a word.
|
||||
| TestComma | 56153 | CP 44 | Return if the input is 44. | |
| 56155 | RET Z | |||
| 56156 | CP 32 | See whether the character just read is a space. | ||
| 56158 | RET | Return. | ||
|
This entry point is used by the routine at ParseATime.
Step back one character and return 240.
|
||||
| TestComma_TestStepOneByte | 56159 | DEC HL | Step back one entry. | |
|
This entry point is used by the routine at ParseATime.
|
||||
| TestComma_0 | 56160 | XOR A | Set the zero flag. | |
| 56161 | LD A,240 | Leave 240 as the result. | ||
| 56163 | RET | Return. | ||
| 56164 | DEFB 0 | First number. Written by 56171 and StartParsedNumber, and read by StartParsedNumber_CombineNumbers. | ||
| 56165 | DEFB 0 | Second number. Written by 56171, StartParsedNumber_ClearSecondThird, 56212 and 56232. Read by 56270. | ||
| 56166 | DEFB 0 | Third number. Written by 56178, StartParsedNumber_ClearSecondThird, 56222 and 56247. Read by 56283. | ||
|
This entry point is used by the routine at TestCommonWord.
|
||||
| TestComma_1 | 56167 | INC HL | Step to the next character and call ParseInputNumber to read a number. | |
| 56168 | CALL ParseInputNumber | |||
| 56171 | LD (56164),A | Store this number as the first number and clear the second number. | ||
| 56174 | XOR A | |||
| 56175 | LD (56165),A | |||
| 56178 | LD (56166),A | Clear the third number. | ||
| 56181 | INC HL | Jump to StartParsedNumber_CombineNumbers if the next character is not a digit. | ||
| 56182 | LD A,(HL) | |||
| 56183 | CALL TestDigit | |||
| 56186 | DEC HL | |||
| 56187 | JR C,StartParsedNumber_CombineNumbers | |||
| 56189 | INC HL | Read the next number into B and continue at StartParsedNumber_ClearSecondThird. | ||
| 56190 | CALL ParseInputNumber | |||
| 56193 | LD B,A | |||
| 56194 | JR StartParsedNumber_ClearSecondThird | |||
| Prev: 56150 | Up: Map | Next: 56196 |