Prev: 42436 Up: Map Next: 42474
42445: Process Text Command
Used by the routines at ProcessTextStream and PrintRandomAlternative.
Reads the next text byte. A command keeps its parameter, and any other byte is printed as text.
Input
IX Pointer to text data
ProcessTextCommand 42445 LD A,(IX+0) Jump ahead to TestSpace if bit 7 of the record's flag byte is clear.
42448 BIT 7,A
42450 JR Z,TestSpace
42452 AND %01111111 Strip the command marker (bit 7) to leave the token code.
42454 LD D,A Keep the token code in D and its parameter in E, and step IX onto that parameter.
42455 LD E,(IX+1)
42458 INC IX
42460 AND %11110000 Keep the token type (the high nibble) for the checks below.
42462 CP 48 Go to PrintCharacterWithTimePeriod when the token type is 48.
42464 JR Z,PrintCharacterWithTimePeriod
42466 CP 32 Go to PrintCharacterWithTimePeriod when the token type is 32.
42468 JR Z,PrintCharacterWithTimePeriod
42470 CP 96 Go to PrintCharacterWithTimePeriod when the token type is 96.
42472 JR Z,PrintCharacterWithTimePeriod
Prev: 42436 Up: Map Next: 42474