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

sbn does not support numeric literal values #10

Open
kaedys opened this issue May 25, 2024 · 1 comment
Open

sbn does not support numeric literal values #10

kaedys opened this issue May 25, 2024 · 1 comment

Comments

@kaedys
Copy link

kaedys commented May 25, 2024

The plugin supports using a numeric literal (ex 1) rather than a register reference for the final argument to sb, but does not support the same for the last argument to sbn, despite numeric literal working perfectly fine for the final argument in-game.

20240525-050231-19d58b
@jweisner
Copy link

Also being flagged are jumps to line numbers.

Example:

checkReset:
lbn r5 1220484876 resetSwitch Open Maximum
bnez r5 0
j ra

In this use case, jumping to line 0 is used to reset all devices back to initial settings. This is flagged with Type mismatch, Found num, expected r? despite numeric literals being valid.

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