dMZX Forums: Megazeux CHIP-8 Emulator - dMZX Forums

Jump to content

Message from the Management

When you finish a new game, demo, engine, or utility, the first thing to do is submit it to the archive for approval. (Log in first, then Upload a New Game from the sidebar.) Then feel free to post about it in this forum; in fact, please continue to do this. This is so people will actually know about your game and play it. As nice as it is to have archive uploads automated, it's not going to help much if no one knows you have a new game to play.

When uploading your games to the archive, please zip up your game using the .ZIP format, even if it is just a .MZX file. As for less popular formats (such as RAR and 7Z), games uploaded in these formats will be rejected. This is because as wonderful as those compression algorithms might be, ZIP is a near universal compression standard, and the only one that will work with the in-game archive browser planned for MZX.

You can also attach your game to a new thread in this forum. In this case, you can use whatever compression format you find suitable. NOTE: Games posted this way won't be put into the archive unless submitted to the archive proper, or unless the author states he/she wants the game in.

Lastly, we suggest you post a suitable screenshot of your submission (in PNG format) along with the game.
Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

Megazeux CHIP-8 Emulator ZOMG EMULATION!

#1 User is offline   Mr_Alert 

  • Doesn't look edible.
  • PipPipPip
  • Group: Members
  • Posts: 151
  • Joined: 25-May 02
  • Gender:Male
  • Location:Torrance, CA

Post icon  Posted 24 November 2005 - 11:33 AM

CHIP-8 is a virtual machine made in the 1970s for use with the RCA TELMAC-1800 and COSMAC VIP computers. It was mainly used to make games, and it is rumored that it was originally made to show off the graphics of those computers (even though they're 64x32 black and white PIXELS!)

And here be a CHIP-8 emulator for Megazeux, with a few games included:

- BRIX (Breakout clone)
- KALEID (Weird graphics type of thing)
- PONG (Obvious)
- PUZZLE (One of those sliding puzzle things)
- PUZZLE2 (Another version of PUZZLE)
- SYZYGY (Nibbles clone...ish)
- UFO (Shoot the white blobs!)
- WIPEOFF (Plinko?)

EDIT: The CHIP-8 emulation uses the left 16 keys on the keyboard (1, 2, 3, 4, Q, W, E, R, A, S, D, F, Z, X, C ,V)

Attached File(s)


?
0

#2 User is offline   Frobozz 

  • Ryiah
  • PipPipPipPipPip
  • Group: Members
  • Posts: 1,808
  • Joined: 07-March 01
  • Gender:Not Telling

Posted 24 November 2005 - 11:49 AM

Just got finished searching with Google and found a small cache of games for the Chip-8. Some are already present in the download from Mr_Alert though. Amongst them is Space Invaders. :(

This post has been edited by Frobozz: 24 November 2005 - 11:51 AM

0

#3 User is offline   Mr_Alert 

  • Doesn't look edible.
  • PipPipPip
  • Group: Members
  • Posts: 151
  • Joined: 25-May 02
  • Gender:Male
  • Location:Torrance, CA

Posted 24 November 2005 - 12:14 PM

Frobozz, on Nov 24 2005, 03:49 AM, said:

Just got finished searching with Google and found a small cache of games for the Chip-8. Some are already present in the download from Mr_Alert though. Amongst them is Space Invaders. :(

Some of those games are SuperChip games that aren't supported by my emulator.

SuperChip has a higher resolution of 128x64, and that's the main reason why it isn't supported yet. It's easier to use half-chars than it is to use a lot of chars and manipulation and such, especially if there isn't any video memory outside the displayed thing.
?
0

#4 User is offline   asgromo 

  • steiner, porsches
  • PipPipPipPipPipPip
  • Group: Members
  • Posts: 3,841
  • Joined: 04-May 02
  • Gender:Female
  • Location:New York State

Posted 24 November 2005 - 01:30 PM

Very cool, Mr_Alert... At least, better than those Brainfuck interpreters. xD
0

#5 User is offline   VinceP 

  • <3
  • PipPipPipPip
  • Group: Members
  • Posts: 866
  • Joined: 20-May 05
  • Gender:Not Telling
  • Location:Ohio, USA

Posted 24 November 2005 - 02:29 PM

Nice work. I've never heard of Chip-8 before, or let alone knew there were home computers or gaming systems in the 1970s.
<a href='http://www.puppylinux.com/' target='_blank'>irritating large image removed</a>
<a href='http://ubanimator.com' target='_blank'><img src='http://img267.imageshack.us/img267/1200/userbar797134vd.gif' border='0' alt='user posted image' /></a>
--VinceP :D
0

#6 User is offline   Mr_Alert 

  • Doesn't look edible.
  • PipPipPip
  • Group: Members
  • Posts: 151
  • Joined: 25-May 02
  • Gender:Male
  • Location:Torrance, CA

Posted 24 November 2005 - 08:53 PM

VinceP, on Nov 24 2005, 06:29 AM, said:

Nice work. I've never heard of Chip-8 before, or let alone knew there were home computers or gaming systems in the 1970s.

Well, they were hobbyist kits and such.
?
0

#7 User is offline   Koji 

  • End
  • PipPipPipPipPipPip
  • Group: Members
  • Posts: 6,644
  • Joined: 15-November 01
  • Gender:Not Telling
  • Location:US, NC

Posted 24 November 2005 - 09:05 PM

This is awesome =D
0

#8 User is offline   paulguy 

  • No furry sex
  • PipPipPipPipPip
  • Group: Members
  • Posts: 1,548
  • Joined: 14-July 02
  • Gender:Male

Posted 24 November 2005 - 11:08 PM

Now make a 2600 emulator. :(


Why-Fi: but I'M MATURE ENOUGH TO BE A MODERATOR!!!!!!!!!!
0

#9 User is offline   Red Penguin 

  • Senior Member
  • PipPipPipPip
  • Group: Members
  • Posts: 832
  • Joined: 05-June 05
  • Location:Computer :D

Posted 24 November 2005 - 11:23 PM

It is hard to work with, I can't really understand it =(
...
0

#10 User is offline   Mr_Alert 

  • Doesn't look edible.
  • PipPipPip
  • Group: Members
  • Posts: 151
  • Joined: 25-May 02
  • Gender:Male
  • Location:Torrance, CA

Posted 25 November 2005 - 05:03 AM

New version with register status stuff, settings dialog for timing, emulation speed indicator (reduce the refresh rate if emu speed gets low), and bugfixes.

Attached File(s)


?
0

#11 User is offline   Frobozz 

  • Ryiah
  • PipPipPipPipPip
  • Group: Members
  • Posts: 1,808
  • Joined: 07-March 01
  • Gender:Not Telling

Posted 25 November 2005 - 11:01 AM

Its strange, but I've always like messing with programs that have limitations. So naturally, I've gotten to like the Chip-8. But I'd like to do more than play games made on it, I'd like to take a stab at making a game myself.

Mr_Alert pointed me towards a site containing a brief list of the instructions that the Chip-8 handles (along with a few for the Super variant). Obviously this is very helpful, but I don't want to have to use a hex editor to code games. So I did some more browsing and came up with two utilities. One is an assembler and the other is a disassembler.

I've uploaded a zip containing both utilities as well as a copy of the page listing the instructions. This should keep somebody busy. :(

Edit: Here is the assembly to one of the simpler programs for the Chip-8. A program that randomly generates a maze. :(

code0004:
        mvi     data0003
        random  v2,1
        skeq    v2,1
        mvi     data0004
        sprite  v0,v1,4
        add     v0,4
        skeq    v0,64
        jmp     code0004
        mov     v0,0
        add     v1,4
        skeq    v1,32
        jmp     code0004
code0002:
        jmp     code0002
data0004:
        db #80
        db #40
        db #20
        db #10
data0003:
        db #20
        db #40
        db #80
        db #10

This post has been edited by Frobozz: 25 November 2005 - 11:14 AM

0

#12 User is offline   VinceP 

  • <3
  • PipPipPipPip
  • Group: Members
  • Posts: 866
  • Joined: 20-May 05
  • Gender:Not Telling
  • Location:Ohio, USA

Posted 25 November 2005 - 03:52 PM

That's the entire program for a random maze? Pretty simple.
<a href='http://www.puppylinux.com/' target='_blank'>irritating large image removed</a>
<a href='http://ubanimator.com' target='_blank'><img src='http://img267.imageshack.us/img267/1200/userbar797134vd.gif' border='0' alt='user posted image' /></a>
--VinceP :D
0

#13 User is offline   CJA 

  • «≡larch bucket≡»
  • PipPipPipPipPipPip
  • Group: Members
  • Posts: 3,262
  • Joined: 23-June 05
  • Gender:Male
  • Location:......@.c....

Posted 25 November 2005 - 05:37 PM

i played them all. they were fun. excellent show.
Need a dispenser here.
0

#14 User is offline   Frobozz 

  • Ryiah
  • PipPipPipPipPip
  • Group: Members
  • Posts: 1,808
  • Joined: 07-March 01
  • Gender:Not Telling

Posted 27 November 2005 - 02:50 AM

In order to further aid in development for the CHIP-8, I've written a FreeBASIC program that converts MegaZeux CHR files into CHIP-8 assembly data statements. I've tested both normal and partial character sets and both work.

There is only one problem - it seems the assembler I've got cannot handle the vast number of "symbols." It dies at number 3,825 for me. :(

This post has been edited by Frobozz: 27 November 2005 - 02:50 AM

0

Share this topic:


Page 1 of 1
  • 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