Sometimes I get bored with my current projects, and just need to take a little break. During this break, I decided to write something I've always wanted to write, a CHIP-8 interpreter. I first wrote a BrainF*** interpreter just for fun. Here's a screen shot of that:
http://i55.tinypic.com/2cxvq4w.png

As you can see, that one is command line. You pass in the program you want to run as a parameter and it prints out the code and then runs it. It ignores all characters that aren't part of the language when it opens a file, so you can comment it and whatever.

Next was the CHIP-8. It's not perfect right now, sadly. It's really slow, and there's something wrong with the drawing (I think they are related), here's a screen shot:

That fish should be whole! The numbers on the left are just some debug stuff. The top is the registers, the bottom is the memory. They only update if you step, as opposed to run.

You can download them here:
http://merthsoft.com/Interpreters.zip
As always, these were written in C#. I've targeted framework 2.0, so they should work just about anywhere Smile
Congrats on these fun mini-projects, Shaun. I also like the distraction of mini-projects in between getting bored or frustrated on my primary projects, so good for you on picking such ambitious projects and finishing them so quickly. Also, you have what appears to be a Blub in that screenshot, so there couldn't possibly be anything bad about these two projects.
Hey nice. Is that in any way related to the CHIP thing Benryves wrote a few years ago? http://www.ticalc.org/archives/files/fileinfo/385/38530.html

I remember trying this and it was quite fun.
KermMartian wrote:
Also, you have what appears to be a Blub in that screenshot, so there couldn't possibly be anything bad about these two projects.
A Blub? What's that?
DJ Omnimaga wrote:
Hey nice. Is that in any way related to the CHIP thing Benryves wrote a few years ago?
Yes, quite related. His does SCHIP-8 as well, but mine as of yet does not.
How can you not know who Blub is!!!! ('v)< blub disapproves of this.
Oh, is it just a fish?
merthsoft wrote:
Oh, is it just a fish?

Just a fish?!?! Shun the nonbeliever!
elfprince13 wrote:
merthsoft wrote:
Oh, is it just a fish?

Just a fish?!?! Shun the nonbeliever!
Shun the non-believer indeed. Sad Such travesties, and from a GMod, no less!
I...
I don't understand...
Perhaps you should take a look at this thread:
http://www.cemetech.net/forum/viewtopic.php?p=11885

Perhaps we should also get back on-topic. Did I see earlier than with Ben's help you fixed your Chip interpreter?
  
Register to Join the Conversation
Have your own thoughts to add to this or any other topic? Want to ask a question, offer a suggestion, share your own programs and projects, upload a file to the file archives, get help with calculator and computer programming, or simply chat with like-minded coders and tech and calculator enthusiasts via the site-wide AJAX SAX widget? Registration for a free Cemetech account only takes a minute.

» Go to Registration page
Page 1 of 1
» All times are UTC - 5 Hours
 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum

 

Advertisement