Replies: 2 comments 1 reply
-
Hi @krisutofu, thanks for filing a feature request for EduMIPS64! I am currently very behind on bugfixes and feature requests -- there is only me working on the simulator, but I'll definitely try to implement this kind of label offset arithmetic. Our parser isn't very easy to work with, so implementing the feature will need lots of care and testing :) In the meantime, a work-around could be to encode the offset in the register you use as the base for the addressing. For example, if you want to address
Hope the work-around is satisfactory in the meantime. Thanks, |
Beta Was this translation helpful? Give feedback.
-
Thank you. I wish, I could help you out, maybe a pull request but I need to find some time between university homework and work. The workaround is functionally equivalent but a little disadvantage for homeworks where maximum performance counts. I saw that parser story and it is very ugly, indeed. I think, breaking the code into methods would make it easier to work with. Other code places in EduMIPS64 that I have seen yet have much better code quality. So, yes, please take your time :-) . The easiest way is only implementing
More effort is probably needed for the tests, e.g.
|
Beta Was this translation helpful? Give feedback.
-
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
It means, it will statically add 0, 8 or 16 to the immediate value that the label is substituted with.
edumips64/src/main/java/org/edumips64/core/parser/Parser.java
Line 676 in 4e61be8
The expression could support up to 5 operators
+
,-
,*
,/
and%
but should support at least+
and-
or specificallylabel+imm
orlabel-imm
.Beta Was this translation helpful? Give feedback.
All reactions