Well i got it to work now, BRIX is working perfect now, or as perfect it can be without any keybord emulation.... But all other games have alot of bugs : p
http://www.ing.umu.se/~victor/Brix.JPG
http://www.ing.umu.se/~victor/Brix.JPG
Rush Hour for CHIP-8 by hap 17-12-06, http://home.planet.nl/~haps/
Based on a boardgame by Nobuyuki Yoshigahara "Nob" and ThinkFun,
http://www.thinkfun.com/
This game contains 170 puzzles. Most were taken from the original cardsets,
some were made by me, and some were generated with Michel's PyTraffic,
http://alpha.uhasselt.be/Research/Algebra/Members/pytraffic . Refer to
the source code for detailed information on this.
The game should work fine on any CHIP-8 interpreter. Moreover, it has been
tested on an RCA COSMAC VIP (4KB) emulator, so hopefully it will work on the
original machine too. Due to memory constraints, password generation was
removed for the VIP version.
FILES
=====
Rush Hour.txt this
Rush Hour.c8 game for a CHIP-8 interpreter
Rush Hour.vip game for the COSMAC VIP (includes the CHIP-8 interpreter)
rh.chp source code
HOW TO PLAY
===========
The goal of the game is to slide the arrow block(s) out of the 6*6 grid.
Completing 10 boards will be awarded with the inclusion of the next boardset(s)
as seen from the connections on the boardset select screen, a password will be
given so you don't have to complete the game in a single session.
HEX key PC key* Use
---------------------------
5 W up
8 S down
7 A left
9 D right
A Z ok/hold to slide
1 1 option(in-game)/back
* = for interpreters that have the 4*4 keypad at 1234/QWER/ASDF/ZXCV.
Emulation is where raw operation codes (the most low-level way of feeding instructions to a computer) are translated by another computer, giving a totally different system the ability to run programs not designed for it.
IMO, it's better to say 2 bytes. Hexdecimal or not, a CPU doesn't care. All opcodes are encoded in bits; it may just be a coincidence that the information can be easily extracted using hex.1. Make the emulator read the file. All opcodes are four digit hex numbers,
but those will need to be split.
I'm unsure you should specify this. On languages like C/C++, when you read past the end of file, it doesn't write any data to the buffer at all. Plus, no chip8 game should ever reach the end of the file. If it does, then you've done something wrong. There is an opcode for terminating the system, however.0000 This is nothing. If you see this, it should mean that you are at the end
of the file and have nothing left to read, so you therefore need to exit
gracefully.
The jump opcodes specify the exact location in memory to jump to; it is NOT relative. The opcode above is invalid because it would jump to interpreter memory (which ranges from 0 to 0x200). A valid opcode might look like 0x120F.Say we had the opcode 100F, that means we would jump to after byte 16 (it is a hex remember).