The rusty space game, in which you program various ships to do battle in risc-v assembly. This contains the collection of libraries+code for this project.
3
stars
0
forks
source link
Handle the GAS oddity for compatability with `gcc -S` output. #2
Basically these are the following oddity that I've noticed in GAS so far. (The description might not be 100% accurate)
LUI takes the lower 20 bits, not the upper 20 bit, and uses %LOW and %HI() to shift the bits (HI = high 20bit shifted over 12) (low = grabbing the low 12 bits)
Look into if I want to have 1:1 compat with GAS in the parser/assembler and have a flag to enable/disable the compat, or if it would be better to just provide a transpiler of sorts that can take the GAS syntax outputted by gcc -S and reformat it into a format that my assembler can take.
Basically these are the following oddity that I've noticed in GAS so far. (The description might not be 100% accurate)
Look into if I want to have 1:1 compat with GAS in the parser/assembler and have a flag to enable/disable the compat, or if it would be better to just provide a transpiler of sorts that can take the GAS syntax outputted by
gcc -S
and reformat it into a format that my assembler can take.