I've been working on this thing for the past week or so (both the emulator and game). I recently decided to try out assembly to see what it's like. I decided that I would also have some fun implementing my own super small architecture. Basically, I came up with a miniature chip emulator that can address only 256 bytes and do it using flat addressing. The architecture is a RISC type architecture (load/store) so most instructions are 2 bytes. Anyways, figuring that others have programmed Pong into a really small space (255 bytes) - an example: 256 Byte Pong I decided to try it out myself. I managed to make the same size (255 bytes, actually). Was wondering if anyone could possibly make it smaller. Would love to see the code for that.
Anyways, the emulator, rom, and such are downloadable below.
To run the game type in: minichip pong.rom
pong.asm is the code, of course. The assembly language is very flat, essentially, executables are assembled like .com files.
For details on how to use the assembler type in: perl mchipasm -help (You will need perl to run the assembler.)
Screenshot of game running:
[attachment=1144:Screenshot-Untitled Window.png]
Wrote Tiny Pong Game (255 bytes!)
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement