Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Doesn't recognize TS2068 DELETE keyword #6

Open
ryangray opened this issue Dec 30, 2022 · 0 comments
Open

Doesn't recognize TS2068 DELETE keyword #6

ryangray opened this issue Dec 30, 2022 · 0 comments

Comments

@ryangray
Copy link

The DELETE keyword in TS2068 BASIC isn't recognized. This was probably easy to miss as its code is 12, rather a long way from 123. The fix is sort of easy. The first thing is to insert 110 empty token entries after "onerr", then add the entry "delete","", before the NULL:

 198:     "onerr", "",
 199:     "", "",
 200:     "", "",
 ...
 308:     "", "",
 309:     "delete", "",
 310:     NULL

The other change is to line 934 to change the min token number from 123 to 12:

934: && toknum >= 123) {
becomes:
1045: && toknum >= 12) {

Although, I would have thought the for loop condition of *tarrptr != NULL would make this check unnecessary anyway.

ohnosec pushed a commit that referenced this issue Feb 20, 2023
Fix for ZX81 mode character code number escapes
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant