-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
WIP: starting to understand how it works add lla
Adds `lla` with proper relocations and also removes the broken jal things and OP_LABEL which was a test with no sense. Things we understood: - Operands can have expresions (op.e) - Expressions can have symbols (e.sym) - From there we can manage to obtain proper relocations for our instructions. See lla as an example for this. Extra: - The parser is not implemented as gas' but we could actually do it with if we had the time for it. All we can do is manage to read `tok` which is the current character being read and then decide how do we process the rest of the thing. Currently we are taking the offsets as a third argument: jalr a0, a1, offset instead of: jalr a0, offset(a1) It could be doable to do it the proper gas' way.
- Loading branch information
1 parent
c0df756
commit 1e597f3
Showing
2 changed files
with
59 additions
and
19 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -83,6 +83,7 @@ | |
/* Pseudo*/ | ||
DEF_ASM(li) | ||
DEF_ASM(la) | ||
DEF_ASM(lla) | ||
DEF_ASM(mv) | ||
DEF_ASM(neg) | ||
DEF_ASM(negw) | ||
|