(S)CHIP 8 Emulator 1.3

Share your advanced PureBasic knowledge/code with the community.
BalrogSoft
Enthusiast
Enthusiast
Posts: 203
Joined: Sat Apr 26, 2003 6:33 pm
Location: Spain
Contact:

Post by BalrogSoft »

Nice work!!! one tip, when i made my Chip 8 emulator (PB version is very bad coded), i made an antiflicker option that make some game to look better, if you check on draw sprite instruction, don't update the screen drawing if all pixels of a draw sprite instruction are clear.

I'm interesting on a Game boy emulator in PB, if you can let me some time, i will update my old PB emulator, i want to make it more clear and add some comments, i really interested in emulation...
Heathen
Enthusiast
Enthusiast
Posts: 498
Joined: Tue Sep 27, 2005 6:54 pm
Location: At my pc coding..

Post by Heathen »

Hey balrogsoft! Glad to see you around here again! Im trying to figure out a good method of anti flicker. If I make it xor every other frame then the sprites leaves trails when they move since it needs to clear itself.. Any suggestions?

Im excited to see your updated gameboy emulator, Im also working on one and started writing procedures for the z80 instruction set today. Some of it is confusing though..

PS: Updated to 1.2 check the changelog in the first post.
I love Purebasic.
BalrogSoft
Enthusiast
Enthusiast
Posts: 203
Joined: Sat Apr 26, 2003 6:33 pm
Location: Spain
Contact:

Post by BalrogSoft »

If I make it xor every other frame then the sprites leaves trails when they move since it needs to clear itself.. Any suggestions?
When i said "don't update screen drawing", i don't mean that the sprite was not drawed, it is drawed on the Video memory of Chip-8, but the screen is not updated on the emulator.
Im excited to see your updated gameboy emulator, Im also working on one and started writing procedures for the z80 instruction set today. Some of it is confusing though..
When i started PGBEm, i didn't make the complete Z80 CPU emulation, i take small PD rom examples, with very little code. And with the help of NO$GMB, you can execute the roms step by step, it helps a lot. Then i took the most simple example, and i wrote only the instructions used on the example.
Heathen
Enthusiast
Enthusiast
Posts: 498
Joined: Tue Sep 27, 2005 6:54 pm
Location: At my pc coding..

Post by Heathen »

....
Last edited by Heathen on Thu May 07, 2009 10:34 am, edited 5 times in total.
I love Purebasic.
Brice Manuel

Post by Brice Manuel »

Balrog F'N Rocks!
BalrogSoft
Enthusiast
Enthusiast
Posts: 203
Joined: Sat Apr 26, 2003 6:33 pm
Location: Spain
Contact:

Post by BalrogSoft »

Ok, i just updated PGBEm and works on PB 4, it's slow, and only works a few PD roms. I changed it to don't use strings for memory but it still working slow.
http://www.balrogsoftware.com/download/pgbem.zip
Heathen
Enthusiast
Enthusiast
Posts: 498
Joined: Tue Sep 27, 2005 6:54 pm
Location: At my pc coding..

Post by Heathen »

Hey balrog, im going to upload what I have done so far with my gb emulator soon, maybe we can share ideas :)

Btw, your emulator crashes for me while running the test games on line 538 (array index out of bounds)
I love Purebasic.
BalrogSoft
Enthusiast
Enthusiast
Posts: 203
Joined: Sat Apr 26, 2003 6:33 pm
Location: Spain
Contact:

Post by BalrogSoft »

your emulator crashes for me while running the test games on line 538 (array index out of bounds)
Very strange, those roms works on my computer with PB 4.02 without any problem.
Post Reply