Prev: 62D7 Up: Map Next: 6319
62F2: Capitalise After A Full Stop
Used by the routine at ExpandToken.
After a full stop, a letter is forced to capitals. A space is handled by FinishWord so a terminator cannot split a word.
Capitalise 62F2 PUSH BC Stash BC on the stack.
62F3 LD B,A Copy the character into B.
62F4 LD A,($5B9B) A preceding full stop capitalises the next letter.
62F7 CP $2E
62F9 JR NZ,Capitalise_Plain
62FB LD A,B The character is in B.
62FC AND %01111111 Keep only bits 0-6.
62FE CP $40 Jump to Capitalise_Plain if it is below 40.
6300 JR C,Capitalise_Plain
6302 CP $5E Jump to Capitalise_Plain if it is 5E.
6304 JR Z,Capitalise_Plain
6306 CP $7E Jump to Capitalise_Plain if it is 7E.
6308 JR Z,Capitalise_Plain
630A RES 5,A Clear bit 5 to make the letter a capital.
630C LD B,A Copy it into B.
Restore the character.
Capitalise_Plain 630D LD A,B Copy the character back into A.
630E POP BC Restore BC from the stack.
630F AND %01111111 Keep only bits 0-6.
6311 CP $20 Jump to FinishWord if the character is a space.
6313 JP Z,FinishWord
6316 LD ($5B9B),A Remember this character as the last one printed.
Continue on to CollectWord.
Prev: 62D7 Up: Map Next: 6319