This the multi-page printable view of this section.Click here to print.

Return to the regular view of this page.

Collect Character restarts

Collect Character and Collect Next Character restarts

Table of Contents

Function AddressDescription
RST_3 0018Collect character
RST_4 0020Collect Next character

RST 3 returns the character addressed by CHADD returning it if it's printable. If it is not printable then CHADD is incremented until a printable character is found.

RST 4 increments CHADD first before returning the next printable character.

These two resets are used in multiple places in the ROM, the BASIC tokenizer being one of them.