Jump to content

Chip 8 emulator W.I.P


26 replies to this topic

#1  

    Space Invader

  • 44 posts
  • Joined: 30-January 04

Posted Wed Feb 4, 2004 5:24 PM

This is my first Lynx program!

I had planned on porting some stuff I'd wrote previously, but the Lynx compiler has a weird syntax so this was mostly wrote today.

As it was pretty much wrote from scratch today it's very early, text/font display is really messed up and invaders (one of the 3 included games) is really really slow.

I hope to get 100% compatibility within the next week or two if I get more time to work on it, and maybe add enhanced graphics (intercept graphics calls and draw nice coloured sprites instead). Chip8 is pretty crappy but does have some pretty cool games, like version of Pacman and Tetris.

Attached Files



#2  

    Space Invader

  • 44 posts
  • Joined: 30-January 04

Posted Wed Feb 4, 2004 5:27 PM

Oops

Attached Files



#3  

    Space Invader

  • 44 posts
  • Joined: 30-January 04

Posted Wed Feb 4, 2004 8:42 PM

I've added a few games to the binary. Tetris, Blinky, Blitz, etc.

The font display is still screwed up, seems to be a problem with displaying "0" weird. Once that it is fixed I'll add superchip support, pretty much all the interesting games are superchip.

Attached Files



#4  

    Moonsweeper

  • 339 posts
  • Joined: 11-November 03
  • Jaja.
  • Location:United States

Posted Wed Feb 4, 2004 9:32 PM

Just tried your demo, and I must say, it runs quite nicely. As for the flickering and skipped parts of sprites, are you using a single screen buffer, or two?

#5  

    Space Invader

  • 45 posts
  • Joined: 29-January 03

Posted Thu Feb 5, 2004 4:50 AM

Great! The first EMULATOR for the Lynx !!! 8)

I tried it on Handy, and it works nicely.

I'm pretty sure all (Super-) Chip8 games fit on a Lynx cart. :D

#6  

    Space Invader

  • 44 posts
  • Joined: 30-January 04

Posted Thu Feb 5, 2004 4:53 AM

The flickering is how the chip 8 draws things :(

Xors pixels.. Whilst some games (see blinky) reduce flickering by only drawing when they need to some like brix and pong aren't so intelligent and do something like:-

drawsprite (x,y) //because sprites are xored this will clear the sprite
//some code here to check user input, etc
drawsprite (x,y) //redraw the sprite


It's possible to get around.. I can analyse the program loops and see when sprites have been xored out... Very game specific though :(

I had planned on doing "remixed" graphics for the games.. This is also very game specific (would have to do a renderer, and draw new graphics for each game) but would get rid of the flickering and make the games look as good as my drawing skills allow.

#7  

    Space Invader

  • 44 posts
  • Joined: 30-January 04

Posted Thu Feb 5, 2004 4:58 AM

Twoface2 said:

Great! The first EMULATOR for the Lynx !!!  8)  

I tried it on Handy, and it works nicely.

I'm pretty sure all (Super-) Chip8 games fit on a Lynx cart.  :D

It might get quite big once I add redrawn graphics, and sound effects (chip8 doesn't really have proper sound but I reckon I could analyse whats going on in the games to trigger sound effects).

I wont be adding all games as some (most) are crap, and some would not be playable with the Lynxs controller

#8  

    Dragonstomper

  • 941 posts
  • Joined: 14-January 03

Posted Thu Feb 5, 2004 7:15 PM

Keep up the good work ! :)

#9  

    Space Invader

  • 44 posts
  • Joined: 30-January 04

Posted Fri Feb 6, 2004 1:22 PM

Fixed up some stuff, and started on super chip support.

Joust seems a bit slow

Attached Files



#10  

    Stargunner

  • 1,091 posts
  • Joined: 09-November 03
  • Location:Massachusetts

Posted Fri Feb 6, 2004 10:18 PM

what is a chip 8 anyways?

An old game or computer system from oversea's?

never heard of it. I did try the emulator, the games look even older then then most 2600 games. I can't believe I've never seen this one before.

Someone enlighten me, ok.

#11  

    River Patroller

  • 3,988 posts
  • Joined: 09-May 02
  • 8-bit from way back
  • Location:St. Petersburg, FL

Posted Mon Feb 9, 2004 1:54 PM

Chip 8 details:

http://members.aol.com/autismuk/chip8/

#12  

    Space Invader

  • 45 posts
  • Joined: 29-January 03

Posted Tue Feb 10, 2004 4:31 AM

I don't know if you have noticed, but:

Blinky doesn't work any longer in the last release :(

After the labyrinth is built, the ghosts and blinky move 1 step and then the game freezes.

#13  

    Space Invader

  • 44 posts
  • Joined: 30-January 04

Posted Tue Feb 10, 2004 7:44 AM

Twoface2 said:

I don't know if you have noticed, but:

Blinky doesn't work any longer in the last release  :(  

After the labyrinth is built, the ghosts and blinky move 1 step and then the game freezes.

oops, sorry about that.. I'll take a look tonight, I'll probably add the superchip version of blinky instead as its a lot better.

#14  

    Space Invader

  • 44 posts
  • Joined: 30-January 04

Posted Tue Feb 10, 2004 2:35 PM

Are you using Handy, or running it on hardware? I can only use it with Handy and Blinky seems fine.

I've added Super Blinky (which looks tonnes better) and Worm (snake type game).

Attached Files



#15  

    Space Invader

  • 44 posts
  • Joined: 30-January 04

Posted Tue Feb 10, 2004 3:22 PM

I've added "Car" but it's very slow, probably because of how I'm emulating scrolling.. ergh.

Attached Files



#16  

    Space Invader

  • 45 posts
  • Joined: 29-January 03

Posted Tue Feb 10, 2004 3:35 PM

CabaretVoltaire said:

Are you using Handy, or running it on hardware?  I can only use it with Handy and Blinky seems fine.  

I've added Super Blinky (which looks tonnes better) and Worm (snake type game).

I used it on Handy, too! Maybe it depends on the version of Handy. I used 0.60, but your earlier chip8 releases worked with blinky. strange :ponder:

#17  

    River Patroller

  • 2,030 posts
  • Joined: 04-April 04
  • none
  • Location:germany

Posted Sat May 16, 2009 12:21 PM

Hi Guys
Is there any lnx or lyx file available?
greetings Walter

#18  

    Quadrunner

  • 5,729 posts
  • Joined: 30-April 03
  • Location:Michigan

Posted Sat May 16, 2009 2:42 PM

That's an old post. LOL

The link in the second post... have you tried it?

#19  

    River Patroller

  • 2,030 posts
  • Joined: 04-April 04
  • none
  • Location:germany

Posted Sun May 17, 2009 10:22 AM

View PostEricDeLee, on Sat May 16, 2009 3:42 PM, said:

That's an old post. LOL

The link in the second post... have you tried it?
Hi Eric
I only need a lnx or lyx file to play it with my flashcard on original hardware.Unfortunately i am not able to change the o file in a lyx or lnx.
greetings Walter

#20  

    Dragonstomper

  • 992 posts
  • Joined: 13-August 02
  • Location:Espoo, Finland

Posted Mon May 18, 2009 1:35 AM

View Postgambler172, on Sun May 17, 2009 7:22 PM, said:

View PostEricDeLee, on Sat May 16, 2009 3:42 PM, said:

That's an old post. LOL

The link in the second post... have you tried it?
Hi Eric
I only need a lnx or lyx file to play it with my flashcard on original hardware.Unfortunately i am not able to change the o file in a lyx or lnx.
greetings Walter

That's not a problem. Lynxer + make_lnx is here to help.
lynxer chip8.o
make_lnx chip8.LYX -b0 256k

And voila! The new chip8.lnx is in the file below.

Attached File  chip8.zip   13.54K   85 downloads

Enjoy (I doubt it),

Karri
You must be a "die hard retro" guy for emulating really ancient keychain software on a 20 year old ancient system.
Attached Image: gameportdevkit.jpg

Edited by karri, Mon May 18, 2009 1:45 AM.


#21  

    Quadrunner

  • 5,729 posts
  • Joined: 30-April 03
  • Location:Michigan

Posted Mon May 18, 2009 3:54 PM

how do you do that... someone else needs to know as well

#22  

    River Patroller

  • 3,347 posts
  • Joined: 07-January 03
  • Location:Goldsboro NC

Posted Mon May 18, 2009 7:00 PM

WOW, this is news to me the LYNX has an emulator.

Edited by walter_J64bit, Mon May 18, 2009 7:01 PM.


#23  

    Moonsweeper

  • 371 posts
  • Joined: 31-May 04
  • Location:France

Posted Tue May 19, 2009 1:03 AM

View PostEricDeLee, on Mon May 18, 2009 11:54 PM, said:

how do you do that... someone else needs to know as well
You only need an insert.o (which is kind of boot program for Atari Lynx) and lynxer.exe
Then just put both in same directory than the file you want to convert into .lyx (let's say chip8.o) and type
lynxer chip8.o
You can flash a .lyx on flashcard or burn it to an eprom, there is nothing more to do.
You will find both in old BLL kit or new developper kit from Karri.
Also, building his own insert.o is quite easy (but you need sprpck to convert image and an assembler to compile it), I guess there is an example somewhere (maybe on sage site ? or in the BLL kit sources). I also made an explanation in french on Yaronet...

If you want a .lnx for Handy, you will also need make_lnx.exe (given with Handy or Handydev I guess) and type :
make_lnx chip8.lyx -b0 256K to build a 256k rom useable with Handy

#24  

    Space Invader

  • 15 posts
  • Joined: 30-May 09
  • Location:Key West, FL

Posted Mon Jun 1, 2009 4:16 PM

View PostFadest, on Tue May 19, 2009 1:03 AM, said:

View PostEricDeLee, on Mon May 18, 2009 11:54 PM, said:

how do you do that... someone else needs to know as well
You only need an insert.o (which is kind of boot program for Atari Lynx) and lynxer.exe
Then just put both in same directory than the file you want to convert into .lyx (let's say chip8.o) and type
lynxer chip8.o
You can flash a .lyx on flashcard or burn it to an eprom, there is nothing more to do.
You will find both in old BLL kit or new developper kit from Karri.
Also, building his own insert.o is quite easy (but you need sprpck to convert image and an assembler to compile it), I guess there is an example somewhere (maybe on sage site ? or in the BLL kit sources). I also made an explanation in french on Yaronet...

If you want a .lnx for Handy, you will also need make_lnx.exe (given with Handy or Handydev I guess) and type :
make_lnx chip8.lyx -b0 256K to build a 256k rom useable with Handy
What is the best emulator to use for my PC using Windows program. I love My Lynx and have heard some good and bad things about the Handy. You sound knowledgeable, so please guide me in the right direction... what can i expect

#25  

    Moonsweeper

  • 357 posts
  • Joined: 19-July 02
  • Location:Germany

Posted Tue Jun 2, 2009 6:08 AM

View PostFadest, on Tue May 19, 2009 7:03 AM, said:

View PostEricDeLee, on Mon May 18, 2009 11:54 PM, said:

how do you do that... someone else needs to know as well
You only need an insert.o (which is kind of boot program for Atari Lynx)

nop.
the "boot" programm is in the mikey-rom and (if you count that in) the first sector of the cartridge-ROM, which is hardcoded inside the lynxer binary. That means, differnt lynxer version might have differt loaders inside.
insert.o is just a title screen which is displayed by the loader (or not if you disable it in the loader). Really, ist only SCB, palette and sprite data, nothing more.

Edited by sage, Tue Jun 2, 2009 6:09 AM.






1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users