PDA

View Full Version : DreamChip V2.0 - Chip8 Emulator For PSP



Zion
March 3rd, 2007, 03:17
Hi all.

This is the second release of Dreamchip - chip8 emulator for psp.

I have worked real hard over the last week with the emulator.

The controls now work great with every game that was tried.

There have been various other bugfixes too.

More roms now work, tetris being one.

Source code is released under the gpl licence (i think) and is included in the zip file.

Next release will see a filebrowser and a speed up and some games are running a bit slow.

Thanks :)

Gizmo356
March 3rd, 2007, 03:35
Awesome release Zion your really proving your self.

blackrave
March 3rd, 2007, 03:38
Very nice release, Zion. I'm about to try it.

I'm very sorry I didn't help you as much as I promised. I've been quite busy restoring my room. :p

Zion
March 3rd, 2007, 03:43
np, i have a lot of beta testers lol ;)

Cody Burke
March 3rd, 2007, 03:43
Awesome, I am going to try it right now :thumbup:

Mark30001
March 3rd, 2007, 03:59
Awesome release. Keep up the great work! :)

DPyro
March 3rd, 2007, 04:21
Wow Zion. I'm gonna make 100 different versions of this :D :D :D :D

joshisposer
March 3rd, 2007, 04:29
I have never really heard of the Chip8. Is this like a name for another system? I want to try this out but i like to know what i am using before i use it.

gunntims0103
March 3rd, 2007, 04:32
Always nice to see a emulator being worked on and being improved.

Great work Zion

DarthPaul
March 3rd, 2007, 05:35
Oh Great Zion! Thanks for the release. You keep giving us awesome stuff...I like this.

Vendeta
March 3rd, 2007, 07:17
screens?

D0N
March 3rd, 2007, 10:35
Great work Zion! Downloading now! :thumbup:

zx-81
March 3rd, 2007, 10:49
Keep it up Zion ;)

Veskgar
March 3rd, 2007, 13:06
Thanks Zion! Nice to see projects like this.

Ari
March 3rd, 2007, 13:45
But it's not an emulator. It's an interpreter... still a great job.

But is it superchip compatible? If not, I'll just stick to my HP48G.

acn010
March 3rd, 2007, 14:53
im glad he is improving to code in c :)
good job

quzar
March 3rd, 2007, 15:59
I'm glad you finally released it properly. A few suggestions: In the command line checker, add an exit(0); so that the program will quit properly on invalid input. You didn't change the output for incorrect SDL allocation (still reads 640x480). You can/should remove all the keyboard related stuff. Through the program you do pretty much identical joystick code 3 or so times. You have no need to check for the output bitdepth format, nor for the endian-ness when compiling for the PSP.

Also, I'm not sure that you have the right, not being the original author to impose your own restrictions on the license that directly contradict the original license.

Zion
March 3rd, 2007, 16:02
You can/should remove all the keyboard related stuff. Through the program you do pretty much identical joystick code 3 or so times.

well, all that is needed. some games use the check keys function while others use comp keys..

believe me it was the best way of doing it, i tried a lot of different ways but the current system feels best.

thanks for the feedback

quzar
March 3rd, 2007, 16:24
/*sees if a certain key is pressed if so true is returned, else false is returned*/

int
comp_keys( byte key_pressed, SDL_Event *event )
{
while ( KeyMap_PollEvent(event) )
if ( event->type == SDL_QUIT )
exit(0);

if(updown[7] /* LEFT */ && key_pressed == 04 ) return 1;
if(updown[8] /* UP */ && key_pressed == 00 ) return 1;
if(updown[9] /* RIGHT*/ && key_pressed == 06 ) return 1;
if(updown[6] /* DOWN */ && key_pressed == 10 ) return 1;
if(updown[2] /*CROSS */ && key_pressed == 02 ) return 1;

return 0;
}


My point is not that you were using 3 functions, but that you were repeating the same actions in all three, on top of that you do lots of stuff that just... doesn't do anything.

note: the above may not work perfectly (as I don't have a dev environment to test it out on) but look at the code, you don't use/need any of the variables you declare in there, etc.

Zion
March 3rd, 2007, 16:35
i see what you mean. ;)

thanks for the advice

zx-81
March 3rd, 2007, 18:10
Also, I'm not sure that you have the right, not being the original author to impose your own restrictions on the license that directly contradict the original license.

You're right, the original emulator source code (SDL chip8) is not distributed under GNU license, but under a kind of copyleft agreement :

Here is the original hearder :

/*This is my first attempt at writing a complete emulator
most of the code has been taken from a previous attempt of mine
that was intended to use Allegro but I never learnt how to use that libaray
anyway it is a chip8 emulator which is programmed to make
use of openGL and GLUT, the purpurse of writing this emulator
is to learn how to use openGL, GLUT, to write an emulator and
to furter expand my c programming skills and knowlage please
feel free to use bits of my code, all I ask is you give credit
were credit is due, TJA.

FEB 11, 2003. */



So, Zion can do what he wants with it (and port it to PSP for our best pleasure :P) , but i'm not sure he can release it under GNU license without the agreement of TJA :o :o :o

Zion
March 3rd, 2007, 18:17
You're right, the original emulator source code (SDL chip8) is not distributed under GNU license, but under a kind of copyleft agreement :

Here is the original hearder :

/*This is my first attempt at writing a complete emulator
most of the code has been taken from a previous attempt of mine
that was intended to use Allegro but I never learnt how to use that libaray
anyway it is a chip8 emulator which is programmed to make
use of openGL and GLUT, the purpurse of writing this emulator
is to learn how to use openGL, GLUT, to write an emulator and
to furter expand my c programming skills and knowlage please
feel free to use bits of my code, all I ask is you give credit
were credit is due, TJA.

FEB 11, 2003. */



So, Zion can do what he wants with it (and port it to PSP for our best pleasure :P) , but i'm not sure he can release it under GNU license without the agreement of TJA :o :o :o

TJA gave me permission to do what i like with it :)

zx-81
March 3rd, 2007, 18:54
so let's do the best chip8 emu :) :) :)

samthegreat68
March 3rd, 2007, 21:04
whats a chip8??

xeonz
March 3rd, 2007, 22:17
Go to google search for chip 8 and click on wikipedia

DarthPaul
March 3rd, 2007, 22:47
What's google?

aries2k4
March 4th, 2007, 00:08
Lol, you smartass.

Nice work Zion. Nice to see your C coding skills are coming along nicely.

Buddy4point0
March 4th, 2007, 01:32
gnarly

bl7cks
April 11th, 2007, 20:16
hey zion its telling me it cant be started on my psp y is dat