Prev: 25303 Up: Map Next: 25369
25330: 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 25330 PUSH BC Stash BC on the stack.
25331 LD B,A Copy the character into B.
25332 LD A,(23451) A preceding full stop capitalises the next letter.
25335 CP 46
25337 JR NZ,Capitalise_Plain
25339 LD A,B The character is in B.
25340 AND %01111111 Keep only bits 0-6.
25342 CP 64 Jump to Capitalise_Plain if it is below 64.
25344 JR C,Capitalise_Plain
25346 CP 94 Jump to Capitalise_Plain if it is 94.
25348 JR Z,Capitalise_Plain
25350 CP 126 Jump to Capitalise_Plain if it is 126.
25352 JR Z,Capitalise_Plain
25354 RES 5,A Clear bit 5 to make the letter a capital.
25356 LD B,A Copy it into B.
Restore the character.
Capitalise_Plain 25357 LD A,B Copy the character back into A.
25358 POP BC Restore BC from the stack.
25359 AND %01111111 Keep only bits 0-6.
25361 CP 32 Jump to FinishWord if the character is a space.
25363 JP Z,FinishWord
25366 LD (23451),A Remember this character as the last one printed.
Continue on to CollectWord.
Prev: 25303 Up: Map Next: 25369