AtariAge Forums: Chip 8 emulator W.I.P - AtariAge Forums

Jump to content

  • (2 Pages)
  • +
  • 1
  • 2
  • You cannot start a new topic
  • You cannot reply to this topic

Chip 8 emulator W.I.P

User is offline CabaretVoltaire Icon
Posted Wed Feb 4, 2004 5:24 PM


  • Icon
  • Space Invader
  • PM this member
  • Posts: 44
  • Joined: 30-January 04
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 File(s)

  • Attached File  chip8.zip (5.53K)
    Number of downloads: 103

0

User is offline CabaretVoltaire Icon
Posted Wed Feb 4, 2004 5:27 PM


  • Icon
  • Space Invader
  • PM this member
  • Posts: 44
  • Joined: 30-January 04
Oops

Attached File(s)

  • Attached File  chip8.zip (5.54K)
    Number of downloads: 93

0

User is offline CabaretVoltaire Icon
Posted Wed Feb 4, 2004 8:42 PM


  • Icon
  • Space Invader
  • PM this member
  • Posts: 44
  • Joined: 30-January 04
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 File(s)

  • Attached File  chip8.zip (7.65K)
    Number of downloads: 107

0

User is offline TailChao Icon
Posted Wed Feb 4, 2004 9:32 PM

    • $EA $EA $EA, Your one stop NOP Shop.


  • Icon
  • Moonsweeper
  • PM this member
  • Posts: 312
  • Joined: 11-November 03
  • Location: United States
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?
0

User is offline Twoface2 Icon
Posted Thu Feb 5, 2004 4:50 AM


  • Icon
  • Space Invader
  • PM this member
  • Posts: 45
  • Joined: 29-January 03
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
0

User is offline CabaretVoltaire Icon
Posted Thu Feb 5, 2004 4:53 AM


  • Icon
  • Space Invader
  • PM this member
  • Posts: 44
  • Joined: 30-January 04
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.
0

User is offline CabaretVoltaire Icon
Posted Thu Feb 5, 2004 4:58 AM


  • Icon
  • Space Invader
  • PM this member
  • Posts: 44
  • Joined: 30-January 04

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
0

User is offline Pocket Icon
Posted Thu Feb 5, 2004 7:15 PM


  • Icon
  • Dragonstomper
  • PM this member
  • Posts: 924
  • Joined: 14-January 03
Keep up the good work ! :)
0

User is offline CabaretVoltaire Icon
Posted Fri Feb 6, 2004 1:22 PM


  • Icon
  • Space Invader
  • PM this member
  • Posts: 44
  • Joined: 30-January 04
Fixed up some stuff, and started on super chip support.

Joust seems a bit slow

Attached File(s)

  • Attached File  chip8.zip (9.57K)
    Number of downloads: 86

0

User is offline Zeptari1 Icon
Posted Fri Feb 6, 2004 10:18 PM


  • Icon
  • Dragonstomper
  • PM this member
  • View gallery
  • Posts: 892
  • Joined: 09-November 03
  • Location: Massachusetts
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.
0

User is offline oesii Icon
Posted Mon Feb 9, 2004 1:54 PM

    • 8-bit from way back


  • Icon
  • River Patroller
  • PM this member
  • Posts: 3,964
  • Joined: 09-May 02
  • Location: St. Petersburg, FL
Chip 8 details:

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

User is offline Twoface2 Icon
Posted Tue Feb 10, 2004 4:31 AM


  • Icon
  • Space Invader
  • PM this member
  • Posts: 45
  • Joined: 29-January 03
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.
0

User is offline CabaretVoltaire Icon
Posted Tue Feb 10, 2004 7:44 AM


  • Icon
  • Space Invader
  • PM this member
  • Posts: 44
  • Joined: 30-January 04

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.
0

User is offline CabaretVoltaire Icon
Posted Tue Feb 10, 2004 2:35 PM


  • Icon
  • Space Invader
  • PM this member
  • Posts: 44
  • Joined: 30-January 04
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 File(s)

  • Attached File  chip8.zip (10.85K)
    Number of downloads: 74

0

User is offline CabaretVoltaire Icon
Posted Tue Feb 10, 2004 3:22 PM


  • Icon
  • Space Invader
  • PM this member
  • Posts: 44
  • Joined: 30-January 04
I've added "Car" but it's very slow, probably because of how I'm emulating scrolling.. ergh.

Attached File(s)

  • Attached File  chip8.zip (14.6K)
    Number of downloads: 106

0

User is offline Twoface2 Icon
Posted Tue Feb 10, 2004 3:35 PM


  • Icon
  • Space Invader
  • PM this member
  • Posts: 45
  • Joined: 29-January 03

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:
0

User is offline gambler172 Icon
Posted Sat May 16, 2009 12:21 PM

    • none


  • Icon
  • Stargunner
  • PM this member
  • Posts: 1,774
  • Joined: 04-April 04
  • Location: germany
Hi Guys
Is there any lnx or lyx file available?
greetings Walter
0

User is offline EricDeLee Icon
Posted Sat May 16, 2009 2:42 PM


  • Icon
  • River Patroller
  • PM this member
  • View blog
  • View gallery
  • Posts: 4,391
  • Joined: 30-April 03
  • Location: Michigan
That's an old post. LOL

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

User is offline gambler172 Icon
Posted Sun May 17, 2009 10:22 AM

    • none


  • Icon
  • Stargunner
  • PM this member
  • Posts: 1,774
  • Joined: 04-April 04
  • Location: germany

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
0

User is offline karri Icon
Posted Mon May 18, 2009 1:35 AM


  • Icon
  • Dragonstomper
  • PM this member
  • View blog
  • Posts: 900
  • Joined: 13-August 02
  • Location: Espoo, Finland

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)
Number of downloads: 29

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

This post has been edited by karri: Mon May 18, 2009 1:45 AM

0

User is offline EricDeLee Icon
Posted Mon May 18, 2009 3:54 PM


  • Icon
  • River Patroller
  • PM this member
  • View blog
  • View gallery
  • Posts: 4,391
  • Joined: 30-April 03
  • Location: Michigan
how do you do that... someone else needs to know as well
0

User is offline walter_J64bit Icon
Posted Mon May 18, 2009 7:00 PM


  • Icon
  • River Patroller
  • PM this member
  • Posts: 3,040
  • Joined: 07-January 03
  • Location: Goldsboro NC
WOW, this is news to me the LYNX has an emulator.

This post has been edited by walter_J64bit: Mon May 18, 2009 7:01 PM

0

User is online Fadest Icon
Posted Tue May 19, 2009 1:03 AM


  • Icon
  • Moonsweeper
  • PM this member
  • Posts: 258
  • Joined: 31-May 04
  • Location: France

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
0

User is offline JCGhitman11 Icon
Posted Mon Jun 1, 2009 4:16 PM


  • Icon
  • Space Invader
  • PM this member
  • Posts: 15
  • Joined: 30-May 09
  • Location: Key West, FL

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
0

User is offline sage Icon
Posted Tue Jun 2, 2009 6:08 AM


  • Icon
  • Chopper Commander
  • PM this member
  • Posts: 232
  • Joined: 19-July 02
  • Location: Germany

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.

This post has been edited by sage: Tue Jun 2, 2009 6:09 AM

0

  • (2 Pages)
  • +
  • 1
  • 2
  • You cannot start a new topic
  • You cannot reply to this topic


1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users