Author Topic: Mega_M8te chip8 all version emulator  (Read 6655 times)

0 Members and 1 Guest are viewing this topic.

Offline ninogenio

  • Pentium
  • *****
  • Posts: 1668
  • Karma: 133
    • View Profile
Mega_M8te chip8 all version emulator
« on: January 11, 2015 »


hey guys.

lately i have been wanting too do an emulator. i have never done one and was always curious, so i got from thursday till today off work and decided too give emulation a blast. done a bit of reading and found the good old chip 8 interpreter was rather easy to do.

so i got stuck in and done full chip 8 which appears too work 100% correctly! i thought great! but wanted to do more so i then added superchip8 opcodes and hireschip8 got all this working with full screen scrolling, 16x16 sprites etc.

then i noticed the MEGA chip 8 documentation and demos so i added that also.

this has been fun and i still have too add a few little functions for full Mega support. however my emulator runs every demo made for the mega so far.

the keys have been mapped too our pc keyboard keys{1,2,3,4,a,s,d,f,z,x,c,v}. i have included in the archive every known chip8 mega8 super8 hires8 demo game and app! as well as an assembler that does all the systems and a few tools too convert resources into asm.

now if you wish too run games i haven't prebuilt into win32 exe's just go too the huge comment block with games in my source and change the path of one of those too the rom you wish too run then build with fb.

also i need too figure out how too get my virtual cpu too dynamically throttle its self too maintain smooth 60hz screen updates right now there is a cpu var at the top of the source that i am having too change too slow down and speed up the amount of allowable cpu cycles per second as without this some of the games run uptoo 3000fps!

there is some really good games and demos prebuilt here... me and the kids really enjoy ant, the cave, blinky, car, mega8 twister demo etc.

enjoy guys and ill update probably next sunday with any changes i make. im also planning too write my first little asm mega8 game for this. then ill be onto z80 gameboy probably.

<edit - noticed when the download link is clicked a 404 pops up from dbf?>
<edit2 - its ok ive just used my dropbox. the emulator with all games source asembler etc can be downloaded from link below cheers >

https://www.dropbox.com/s/c1tkc9ekxau1av9/Ninos%20MEGA%20M8TE%20chip8-mega8-super8-hireschip8%20emulator.rar?dl=0
« Last Edit: January 18, 2015 by ninogenio »
Challenge Trophies Won:

Offline ninogenio

  • Pentium
  • *****
  • Posts: 1668
  • Karma: 133
    • View Profile
Re: Mega_M8te chip8 all version emulator
« Reply #1 on: January 14, 2015 »
maybe i should have used more pictures.....


anywho i have updated the above, tonight.. i have done loads.. now its just a matter of dropping a ch8 file into the open window and the game will start too play. similarily when changing games there is no need too shut the emulator down just drop the new game over the running game and it will change.

also added dynamic cpu scaling too hit target fps! a splash screen.. added some emulator controls ie 0 does a game reset( this was too save having too restart the emulator every time the end of a game came). 9 switches index register hack on and off i found that some games need this hack too run correctly while others don't so its easy too toggle it now. left and right arrow keys adjust the target fps adjustable from 20 fps all the way up too 300 in 20fps increments, i thought it would be best too leave this fully adjustable.

there is full instuctions in the folder describing all this and full source as well

i rewrote a lot of the cpu core got rid of lots of nasty little bugs and overall its just much tighter/nicer. ill still keep messing and anything i find ill update and repost. cheers
Challenge Trophies Won:

Offline Hotshot

  • DBF Aficionado
  • ******
  • Posts: 2114
  • Karma: 91
    • View Profile
Re: Mega_M8te chip8 all version emulator
« Reply #2 on: January 17, 2015 »
Nice one... Twister :)  :clap:

Offline ninogenio

  • Pentium
  • *****
  • Posts: 1668
  • Karma: 133
    • View Profile
Re: Mega_M8te chip8 all version emulator
« Reply #3 on: January 18, 2015 »
thanks hotshot!

this was a nice little project too get me into a nes emulator which im currently doing right now.. however ive updated the chip 8 emulator above again this is the 3rd update and it just brings lots of stability patches and little ch8 bug fixes.. im quite happy too say this is very stable and quite finished now.
Challenge Trophies Won:

Offline Clyde

  • A Little Fuzzy Wuzzy
  • DBF Aficionado
  • ******
  • Posts: 7271
  • Karma: 71
    • View Profile
Re: Mega_M8te chip8 all version emulator
« Reply #4 on: June 02, 2015 »
Cool!! 8)
Still Putting The IT Into Gravy
If Only I Knew Then What I Know Now.

Challenge Trophies Won:

Offline Omnikam

  • Atari ST
  • ***
  • Posts: 121
  • Karma: 4
    • View Profile
Re: Mega_M8te chip8 all version emulator
« Reply #5 on: October 17, 2015 »
Great to see people on here are still using FB
Im 5 years late