Prev: 6E97 Up: Map Next: 6F47
6F30: A full stop, comma or quote is a token by itself
Used by the routine at TOKENISE.
And each takes the class of a word: a full stop $B0, the same as THEN, and a comma $A0, the same as AND -- so TAKE THE MAP. GO EAST and TAKE THE MAP, THE KEY parse exactly as their spelled-out forms. A quote is $90. Returns Z if it was one of the three.
PUNCTUATION_TOKEN 6F30 LD B,$B0 Full stop: $B0, as THEN
6F32 CP $2E
6F34 JR Z,PUNCTUATION_TOKEN_0
6F36 LD B,$A0 Comma: $A0, as AND
6F38 CP $2C
6F3A JR Z,PUNCTUATION_TOKEN_0
6F3C CP $22 Quote: $90; anything else is not punctuation
6F3E RET NZ
6F3F LD B,$90
PUNCTUATION_TOKEN_0 6F41 INC HL Step past it; A = the class, and no word
6F42 LD A,B
6F43 LD BC,$0000
6F46 RET
Prev: 6E97 Up: Map Next: 6F47