Page 1 of 2

(S)CHIP 8 Emulator 1.3

Posted: Thu Jan 18, 2007 2:04 pm
by Heathen
...

Posted: Thu Jan 18, 2007 2:11 pm
by KarLKoX
Great job ! Image

Posted: Thu Jan 18, 2007 2:17 pm
by Heathen
Thanks :)


Here's some public domain roms (not all work yet)

http://www.zophar.net/roms.phtml?op=show&type=chip8


Btw anyone can use this code however you want (help is more than welcome also), PB needs a good and solid open source chip8 emulator for everyone to learn from.

Here's a bit of info if anyone is interested

- There are 16 registers from 0-15 register(X)
- Register(15) is the cary register and collision flag
- I is another register mostly for memory access
- chip8 mode is 64 x 32 while schip8 mode is 128 x 64 (scaled to the window)
- The stacksize only allows for 16 subroutine calls
- All graphics are XORed onto the screen
- I do not use wrapping (as the documentation suggests) since only 1 game uses it (that I know of) and it causes problems in some games. Most games that that need it, handle it themselves.
- The rom starts at $200 since the first 512 bytes is reserved for the interpreter.

Posted: Thu Jan 18, 2007 2:42 pm
by ts-soft
works fine here
Image

Posted: Fri Jan 19, 2007 3:27 am
by Heathen
Added the gui and updated to 0.2.. Unfortunately, not much in the way of bugs have been fixed (just some small things)

Posted: Fri Jan 19, 2007 10:47 am
by techjunkie
Really great! and nice looking code, almost beautiful... :wink:

Posted: Fri Jan 19, 2007 10:54 am
by Heathen
thanks :) I just updated to 0.3 lots of changes.


Edit:
Updated to 0.4. This fixed MANY games.

Posted: Fri Jan 19, 2007 2:56 pm
by zikitrake
:shock: :D Really nice!!!

Posted: Fri Jan 19, 2007 5:19 pm
by Pantcho!!
Awesome!!!

really great!!

what is next ? gameboy ? :lol:

Posted: Fri Jan 19, 2007 5:28 pm
by DarkDragon
Pantcho!! wrote:Awesome!!!

really great!!

what is next ? gameboy ? :lol:
Already done by balrog(part of it), but nobody has the source anymore.

Posted: Fri Jan 19, 2007 7:52 pm
by Heathen
Yup, gameboy is next for sure. will probably take a very long time since the z80 processor has faaar more instructions than chip8. Anyone interested in helping?

Ps: updated to 1.0, almost every game works now.

Posted: Fri Jan 19, 2007 10:40 pm
by Brice Manuel
Already done by balrog(part of it), but nobody has the source anymore.
If you want, I can check my PB code archives. I am pretty sure that is on one of my CDs in the Balrog section. I also have the code for an open source GameBoy emulator written in VB.

Posted: Sat Jan 20, 2007 1:48 am
by Heathen
Here is his gameboy emulator

Very incomplete though.

Now that this emulator is almost done, does anyone want to help me with writing a gameboy emulator?

Im probably going to start mapping the z80 instructions today

Edit:
Updated to 1.1, almost perfect compatibility now. Even more games work perfectly like joust. Check the changelog.

Posted: Sat Jan 20, 2007 7:53 am
by DarkDragon
Nice to see the sources again :D .

Posted: Sat Jan 20, 2007 9:25 am
by Heathen
Well guys, I probably wont be updating this much more (except for some visual changes or if some wierd bug creeps up).

I have started work on my z80/gameboy emulator. If someone wants to join me that would be more than great. :)