Don't have an account? Register now to chat, post, use our tools, and much more.
Latest Headlines
Online Users
There are 114 users online: 8 members, 82 guests and 24 bots. Members: fortytwo, geekboy1011, hellninjas, JosJuice, nsg. Bots: Magpie Crawler (4), Googlebot (19), MSN/Bing (1).
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  _________________ Shaun |
|
| Back to top |
|
|
KermMartian

Site Admin

Joined: 14 Mar 2005 Posts: 55741 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: 1485 Location: Quebec (Canada)
|
|
| 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: 10232 Location: A galaxy far far away......
|
|
| Back to top |
|
|
KermMartian

Site Admin

Joined: 14 Mar 2005 Posts: 55741 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. 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: 55741 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 |
|
|
|
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
|
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.030949 seconds.
|