Chapter 10. Plugins | 111 |
10.3.2 Chip-8 Emulator
Chip8 is a kind of assembly language for a
There are lots of tiny Chip8 games (usually only about 256 bytes to a couple of KB) which were made popular by the HP48 calculator’s emulator for them. The orig- inal Chip8 had 64x32 pixel graphics, and the new superchip emulator supports 128x64 graphics.
The only problem is that they are based on a 4x4 keyboard, but since most games do not use all of the buttons, this can easily be worked around.
To do this, one may put a .c8k le with the same name as the original program which contains new key mappings (for BLINKY.ch8, one writes a BLINKY.c8k le). That
.c8k le contains 16 characters describing the mapping from the Chip8 keyboard to the default key mapping (that way, several Chip8 keys can be pressed using only one Rockbox key). For example, a le containing the single line:
Code
0122458469ABCDEF
would correspond to the following
The default keymappings are:
Chip8 |
| O 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 8 9 A B C D E F | |
|
|
|
|
|
|
|
|
|
|
|
Key |
| Power | Menu | Up | Volume down | Select | Right | Volume up | Down | |
| ||||||||||
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Some places where can you can nd .ch8 les:
The PluginChip8 page on www.rockbox.org has several attached: ZPluginChip8
Check out the HP48 chip games section: http://www.hpcalc.org/hp48/games/chip/
PC emulator by the guy who wrote the HP48 emulator: http://www.pdc.kth.se/
lfo/chip8/CHIP8.htm
Links to other chip8 emulators: http://www.zophar.net/chip8.html
The Rockbox manual | Toshiba Gigabeat F Series |