mipsy
mipsy copied to clipboard
--spim-compatibility flag
spim supports some features which are not necessary and perhaps not even desirable in an intro assembler class.
mipsy might support them with a --spim-compatibility flag
For example, spim converts some real instructions into other instructions=
jal $31 add $8, $8, 1 addi $7, 1
Another example, allows any number of commas as separators, e.g:
li,,$4,,,5
update, we have a --spim
flag to run in a "spim-compatbility mode".
however, currently this only enables .space
directives to insert zeroes, as opposed to uninitialised bytes.
there is a lot of scope for this issue, so I'll leave it open for the meanwhile.
spim will initialise everything to zero. including registers and stack memory.