Jump to content
IGNORED

Chip 8 emulator W.I.P


CabaretVoltaire

Recommended Posts

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.

chip8.zip

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

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

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

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:

Link to comment
Share on other sites

  • 5 years later...
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.

 

chip8.zip

 

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.

post-2099-1242632724_thumb.jpg

Edited by karri
Link to comment
Share on other sites

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

Link to comment
Share on other sites

  • 2 weeks later...
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

Link to comment
Share on other sites

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
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...