Finished MIPS Simulator
Posted: Fri Mar 09, 2012 4:19 pm
Hello, all!
I have recently been doing some interesting development in my spare time. If you just want to see something real quick, check out http://code.google.com/p/mips-machine/. Run the program and click "Resume" a few times (remembering to provide input when the simulator is waiting).
So, that's just the baby stages of something really cool
I'm writing a MIPS simulator since I'm so bored in school. I figured it would be really easy to target a compiler at MIPS, so once I got it working I could experiment with targeting other platforms. I want to eventually target a managed operating system ("Nazario") at ARM and Intel.
I've had a bit of experience writing operating systems and compilers pretty thoroughly for fun. Right now, I haven't had as much time as I used to to work on this stuff since I've been volunteering most of my time as sort of a software architect for a ministry in East Texas.
What do you think?
-Josh Wyant
UPDATE 3/12/2012: I know most of you probably don't have Mercurial, and perhaps some of you don't even have Visual Studio. So, I uploaded a test build. You can find it here! Since I made this post, the simulator has become much cleaner and friendlier. When you start it, it's already loaded with a program in memory (which comes from page 21 of the book I mentioned on the project page), but you can also load the sample.asm file and run that. You can step through and edit the programs, also. Remember that if the CPU is in syscall 5, you can't do anything until you provide input in the console window.
Note This post represents the state of the project when I first started working on it. Go to the home page to see the latest updates and get the latest copy.
A subset of the instruction set is implemented so far. I really hope to get this working at a useful scale. It's coming along great so far!
Here's a screenshot:
I have recently been doing some interesting development in my spare time. If you just want to see something real quick, check out http://code.google.com/p/mips-machine/. Run the program and click "Resume" a few times (remembering to provide input when the simulator is waiting).
So, that's just the baby stages of something really cool
I'm writing a MIPS simulator since I'm so bored in school. I figured it would be really easy to target a compiler at MIPS, so once I got it working I could experiment with targeting other platforms. I want to eventually target a managed operating system ("Nazario") at ARM and Intel.
I've had a bit of experience writing operating systems and compilers pretty thoroughly for fun. Right now, I haven't had as much time as I used to to work on this stuff since I've been volunteering most of my time as sort of a software architect for a ministry in East Texas.
What do you think?
-Josh Wyant
UPDATE 3/12/2012: I know most of you probably don't have Mercurial, and perhaps some of you don't even have Visual Studio. So, I uploaded a test build. You can find it here! Since I made this post, the simulator has become much cleaner and friendlier. When you start it, it's already loaded with a program in memory (which comes from page 21 of the book I mentioned on the project page), but you can also load the sample.asm file and run that. You can step through and edit the programs, also. Remember that if the CPU is in syscall 5, you can't do anything until you provide input in the console window.
Note This post represents the state of the project when I first started working on it. Go to the home page to see the latest updates and get the latest copy.
A subset of the instruction set is implemented so far. I really hope to get this working at a useful scale. It's coming along great so far!
Here's a screenshot: