insou22 / mipsy

Education-focused MIPS Emulator written in Rust.
87 stars 13 forks source link

--spim-compatibility flag #32

Open andrew-taylor opened 3 years ago

andrew-taylor commented 3 years ago

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

insou22 commented 3 years ago

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.

Dylan-Brotherston commented 3 years ago

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