CEMETECH
Leading The Way To The Future
Login [Register]
Username:
Password:
Autologin:

Don't have an account? Register now to chat, post, use our tools, and much more.
Latest Headlines
Online Users
There are 129 users online: 7 members, 97 guests and 25 bots.
Members: BinaryZyzzyva, charlessprinkle.
Bots: VoilaBot (2), Spinn3r (1), MSN/Bing (2), Googlebot (20).
RSS & Social Media
SAX
You must log in to view the SAX chat widget
Author Message
merthsoft


File Archiver


Joined: 09 May 2010
Posts: 2735

Posted: 04 Dec 2010 12:54:49 pm    Post subject: Some Interpreters

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
_________________
Shaun
Back to top
KermMartian


Site Admin


Joined: 14 Mar 2005
Posts: 55884
Location: Earth, Sol, Milky Way

Posted: 04 Dec 2010 08:37:04 pm    Post subject:

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.
_________________


Back to top
DJ_O


Retired TI-83+ coder


Joined: 18 Mar 2005
Posts: 1497
Location: Quebec (Canada)

Posted: 05 Dec 2010 03:45:32 am    Post subject:

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.
_________________
Retired Omnimaga/TIMGUL founder. ►►►Please PM Omni issues to the right admins, not me, else you'll be ignored.◄◄◄

Bandcamp|Facebook|Youtube|Twitter
Back to top
merthsoft


File Archiver


Joined: 09 May 2010
Posts: 2735

Posted: 05 Dec 2010 12:30:48 pm    Post subject:

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.
_________________
Shaun
Back to top
TheStorm


NOU!


Joined: 26 Mar 2007
Posts: 2375

Posted: 05 Dec 2010 03:24:24 pm    Post subject:

How can you not know who Blub is!!!! ('v)< blub disapproves of this.
_________________

"Always code as if the person who will maintain your code is a maniac serial killer that knows where you live" -Unknown

"If you've done something right no one will know that you've done anything at all" -Futurama

"Have a nice day, or not, the choice is yours." Tom Steiner

<Michael_V> or create a Borg collective and call it The 83+
<Michael_V> Lower your slide cases and prepare to be silent linked. Memory clears are futile.
Back to top
merthsoft


File Archiver


Joined: 09 May 2010
Posts: 2735

Posted: 05 Dec 2010 04:19:57 pm    Post subject:

Oh, is it just a fish?
_________________
Shaun
Back to top
elfprince13


OVER NINE THOUSAND!


Joined: 23 May 2005
Posts: 10248
Location: A galaxy far far away......

Posted: 06 Dec 2010 03:27:07 pm    Post subject:

merthsoft wrote:
Oh, is it just a fish?

Just a fish?!?! Shun the nonbeliever!
_________________
StickFigure Graphic Productions || VSHI: Vermont Sustainable Heating Initiative


Back to top
KermMartian


Site Admin


Joined: 14 Mar 2005
Posts: 55884
Location: Earth, Sol, Milky Way

Posted: 06 Dec 2010 03:51:40 pm    Post subject:

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!
_________________


Back to top
merthsoft


File Archiver


Joined: 09 May 2010
Posts: 2735

Posted: 06 Dec 2010 05:22:31 pm    Post subject:

I...
I don't understand...
_________________
Shaun
Back to top
KermMartian


Site Admin


Joined: 14 Mar 2005
Posts: 55884
Location: Earth, Sol, Milky Way

Posted: 06 Dec 2010 05:39:34 pm    Post subject:

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?
_________________


Back to top
Display posts from previous:   
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
    »
» View previous topic :: View next topic  
Page 1 of 1 » All times are GMT - 5 Hours

 
Jump to:  
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

© Copyright 2000-2013 Cemetech & Kerm Martian :: Page Execution Time: 0.036771 seconds.