Prev: 6E97 Up: Map Next: 6F47
6F30: Input: Classify Punctuation
Used by the routine at Input_TakeTheNextWord.
Turns a full stop, comma or quote into the class being matched the parser expects.
Input_ClassifyPunctuation 6F30 LD B,$B0 Take class B0, and jump to Input_ClassifyPunctuation_StepAlongTheInputBuffer if this character is a full stop.
6F32 CP $2E
6F34 JR Z,Input_ClassifyPunctuation_StepAlongTheInputBuffer
6F36 LD B,$A0 Take class A0, and jump to Input_ClassifyPunctuation_StepAlongTheInputBuffer if this character is a comma.
6F38 CP $2C
6F3A JR Z,Input_ClassifyPunctuation_StepAlongTheInputBuffer
6F3C CP $22 Return unless this character is a quote.
6F3E RET NZ
6F3F LD B,$90 A quote uses class 90.
Input_ClassifyPunctuation_StepAlongTheInputBuffer 6F41 INC HL Step to the next byte of the input buffer.
6F42 LD A,B Take the punctuation class into A.
6F43 LD BC,$0000 Start from a clear pointer.
6F46 RET Return.
View the equivalent code in;
Prev: 6E97 Up: Map Next: 6F47