zx-rom-mods icon indicating copy to clipboard operation
zx-rom-mods copied to clipboard

Alpha characters after 'U' print as tokens in 'G' mode.

Open cheveron opened this issue 4 years ago • 2 comments

Cosmetic. Fix available in GW03.ROM.

cheveron avatar May 24 '20 08:05 cheveron

This is a tricky one, because I would like to keep extensibility, allowing for more than 26 UDG's. In fact, I am considering completely overhauling ZX85's token system, making it context-insensitive like this ROM's, filling the entire range between 0x80 and 0xFF with tokens. The reason for the context-sensitive tokenization (feeding expressions to VAL and VAL$) is gone, as ZX85 has sytnax-checked quotations between { and }, which is a superior solution to context-sensitive tokens. This will free up quite a bit of ROM space in ZX85 and allow for lots of UDG's.

nagydani avatar May 24 '20 12:05 nagydani

In SE Basic IV we use $80 to $05 as tokens (looping after $ff). Instead of UDGs, we store an 8-bit font in the frame buffer and enable every character to be looked up with USR c. Our terminal entry system enables tokens to be entered into VAL and VAL$ but editing the line detokenizes it. Using { and } does sound like a good idea.

cheveron avatar May 24 '20 14:05 cheveron