Open
Conversation
RubixDev
requested changes
Nov 6, 2025
Owner
RubixDev
left a comment
There was a problem hiding this comment.
This will need to be rebased on main, and I've got a couple of questions, but otherwise looks good :)
Contributor
Author
|
Thanks for the quick review. I made the requested changes. Let me know if I need to fix anything else! |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Hello, I found several errors regarding pointers in ARMv7 (or missing features). Here are several examples underlining the different issues that I have attempted to solve.
For
LDR A3, [A1, V2]:Before:
After:
Here, only integers were expected in the second argument of the pointer, whereas other registers are also aloud too.
For
LDR A3, [A1, V2, LSL#2]:Before:
After:
Here,
LSLwas considered as a register, and#2as a comment, whereasLSLshould be an instruction and#2should be an integer. This is an ARMv7 feature used to shift the offset of a pointer (if present, the third argument is always some shift instruction followed by an integer).For:
LDR A3, [A2], V3, LSL#2Before:
After:
The error here was similar to the 2nd example. However, I added support for post-increment of the register pointer (which is outside of the square brackets).
Thank you very much! Let me know if there are any changes/improvements you would like me to make!