mipsy icon indicating copy to clipboard operation
mipsy copied to clipboard

--spim-compatibility flag

Open andrew-taylor opened this issue 3 years ago • 2 comments

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

andrew-taylor avatar Oct 02 '21 07:10 andrew-taylor

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.

insou22 avatar Oct 08 '21 07:10 insou22

spim will initialise everything to zero. including registers and stack memory.

Dylan-Brotherston avatar Oct 08 '21 07:10 Dylan-Brotherston