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

REM Shift-L bug #366

Open
calmsacibis995 opened this issue Sep 16, 2024 · 3 comments
Open

REM Shift-L bug #366

calmsacibis995 opened this issue Sep 16, 2024 · 3 comments

Comments

@calmsacibis995
Copy link
Contributor

calmsacibis995 commented Sep 16, 2024

Suppose this code:
2024-09-16_19-51

Typing REM and then Shift-L will cause BASIC to error out when listing the program. Low-priority bug.

@mooinglemur
Copy link
Collaborator

mooinglemur commented Sep 16, 2024

I suppose this would be an enhancement request as this is the behavior of BASIC v2. Unquoted characters >= $80 after a REM isn't supported, even on the C64.

image

@calmsacibis995
Copy link
Contributor Author

BASIC v7 is different, however. It instead replaces the comment with 10 REM RGR, instead of throwing a syntax error.

2024-09-17_20-55

@calmsacibis995
Copy link
Contributor Author

One possible solution is when running the LIST command, BASIC checks if the token is the REM token. If it is, it will ignore everything, untill it reaches an NUL byte. If not, it will interpret everything else as a token, and its arguments if they do exist.

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

2 participants