Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon.

Pages: 1-

MARS MIPS sim editing

Name: Anonymous 2011-12-13 20:24

Need help from anyone able to
I want to edit the MARS mips simulator source code so I can add an instruction or two of my own, but I can't figure out how to do so. Any ideas?

Name: Anonymous 2011-12-13 20:25

Read SICP.

Name: Anonymous 2011-12-13 20:26

>>1
decompile the java inside the .jar?

Name: Anonymous 2011-12-13 20:32

See, when I try to import from the jar into eclipse, the only way I can import it is into an existing project as an archive file, and when I do that most of the source code isn't even there

Name: Anonymous 2011-12-13 20:39

In a nutshell, what I want to do is import it into Eclipse, add a new instruction to the source code, and then export it as a runnable jar file that I can run and test. Is there a way to do that?

Name: Anonymous 2011-12-13 22:47

SPIM : Superior Program for Imitating MIPS

Name: Anonymous 2011-12-13 23:00

>>6
Simulateur Pour les Instructions de MIPS

Name: Anonymous 2011-12-13 23:24

haters gonna hate
OP here, figured it out on my own, and it was painfully simple

i guess i was just overthinking things, because all you do is import the archive file into an existing java project in eclipse, and then move everything into the src folder. seriously feel stupid for not having figured that out.

Having said that, anyone got any useful pseudoinstructions or basic instructions I could try to add to the instruction set?

Name: Anonymous 2011-12-13 23:25

just looking for some neat things to add that would simplify coding in mips

Name: Cudder !MhMRSATORI!FBeUS42x4uM+kgp 2011-12-14 6:24

>>9
All the x86 instructions.

Name: Anonymous 2011-12-14 10:49

>>10
Like a one-argument div and a stack-based FPU, amirite?

Name: Anonymous 2011-12-14 13:15

>>11
Floating point is a shitty way to represent rationals.

Name: Anonymous 2011-12-14 16:32

>>12
Binary IEEE floating point is a shitty way to represent rationals.
Fixed

Don't change these.
Name: Email:
Entire Thread Thread List