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

Add label offset arithmetic in the parser #716

Open
lupino3 opened this issue Oct 31, 2022 Discussed in #714 · 0 comments
Open

Add label offset arithmetic in the parser #716

lupino3 opened this issue Oct 31, 2022 Discussed in #714 · 0 comments

Comments

@lupino3
Copy link
Member

lupino3 commented Oct 31, 2022

Discussed in #714

Originally posted by krisutofu October 30, 2022
Dear EduMIPS64 developers,
thank you for all your work to provide this improved educational simulator. I recently discovered EduMIPS64. I would like to switch to WinMIPS64 but I am missing a good feature that was available in WinMIPS64.

WinMIPS64 allows you to write

    l.d f0, array+0($zero)
    l.d f1, array+8($zero)
    l.d f2, array+16($zero)

It means, it will statically add 0, 8 or 16 to the immediate value that the label is substituted with.

The expression could support up to 5 operators + , - , *, / and % but should support at least + and - or specifically label+imm or label-imm.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant