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

ON BIT GOTO/GOSUB #101

Open
neilsf opened this issue Mar 16, 2020 · 1 comment
Open

ON BIT GOTO/GOSUB #101

neilsf opened this issue Mar 16, 2020 · 1 comment
Labels
enhancement New feature or request

Comments

@neilsf
Copy link
Owner

neilsf commented Mar 16, 2020

Idea: ON .. GOTO/GOSUB should support situations where we want to check if individual bits are set and jump to the Nth label when the Nth bit is set. for example:

ON BIT %00000001 GOTO label0, label1, label2 ...

would jump to label0 whereas

ON BIT %00000100 GOTO label0, label1, label2 ...

would jump to label2.

Not sure what happens if more than one bits are set, I guess bit checking would stop at the first match (the least significant bit that's set).

@neilsf neilsf added the enhancement New feature or request label Mar 16, 2020
@neilsf
Copy link
Owner Author

neilsf commented Mar 17, 2020

Edit: ON BIT 0 GOTO label0, label1 ... should jump to the label0 whereas ON BIT %00000001 GOTO label0, label1... to label1, etc..

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant