2006-02-21 11:54:53 +00:00
|
|
|
\subsection{\label{ref:Chip8emulator}Chip{}-8 Emulator}
|
2006-03-11 07:52:11 +00:00
|
|
|
Chip8 is a kind of assembly language for a long-gone architecture.
|
|
|
|
This plugin runs games written using the chip8 instructions.
|
2006-06-28 17:23:48 +00:00
|
|
|
To start a game open a \fname{.ch8} file in the \setting{File Browser}
|
2006-02-21 11:54:53 +00:00
|
|
|
|
|
|
|
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 original Chip8 had
|
2010-05-20 16:20:58 +00:00
|
|
|
64$\times$32 pixel graphics, and the new superchip emulator supports 128$\times$64
|
2006-03-11 07:52:11 +00:00
|
|
|
graphics.
|
|
|
|
|
2010-05-20 16:20:58 +00:00
|
|
|
The only problem is that they are based on a 4$\times$4 keyboard, but since most
|
2006-02-21 11:54:53 +00:00
|
|
|
games do not use all of the buttons, this can easily be worked around.
|
|
|
|
|
2007-01-07 17:23:57 +00:00
|
|
|
To do this, one may put a \fname{.c8k} file with the same name as the
|
2006-06-28 17:23:48 +00:00
|
|
|
original program which contains new key mappings (for \fname{BLINKY.ch8}, one
|
|
|
|
writes a \fname{BLINKY.c8k} file). That \fname{.c8k} file contains 16
|
|
|
|
characters describing the mapping from the Chip8 keyboard to the default key
|
2006-03-11 07:52:11 +00:00
|
|
|
mapping (that way, several Chip8 keys can be pressed using only one
|
2007-01-07 17:23:57 +00:00
|
|
|
Rockbox key). For example, a file containing the single line:
|
|
|
|
\begin{code}
|
|
|
|
0122458469ABCDEF
|
|
|
|
\end{code}
|
|
|
|
would correspond to the following non-default mappings:
|
|
|
|
|
|
|
|
3 $\rightarrow$ 2, 6 $\rightarrow$ 8, 7 $\rightarrow$4, 8 $\rightarrow$ 6.
|
|
|
|
|
|
|
|
The default keymappings are:
|
2006-04-03 22:45:01 +00:00
|
|
|
\begin{table}
|
2007-01-07 17:23:57 +00:00
|
|
|
\begin{center}
|
|
|
|
\begin{tabularx}{.9\textwidth}{c|ccccccccccccccccc}
|
|
|
|
\toprule
|
|
|
|
Chip8 & Off & 0 & 1 & 2 & 3 & 4 & 5 & 6 & 7 & 8 & 9
|
|
|
|
& A & B & C & D & E & F\\
|
|
|
|
\midrule
|
|
|
|
\begin{sideways}Key\end{sideways}
|
|
|
|
&
|
|
|
|
% key "off"
|
|
|
|
\begin{sideways}
|
|
|
|
\opt{RECORDER_PAD,ONDIO_PAD,IRIVER_H100_PAD,IRIVER_H300_PAD}{\ButtonOff}
|
|
|
|
\opt{IPOD_4G_PAD,IPOD_3G_PAD}{\ButtonMenu}
|
2010-01-27 07:38:14 +00:00
|
|
|
\opt{IAUDIO_X5_PAD,IRIVER_H10_PAD,SANSA_E200_PAD,SANSA_C200_PAD%
|
2013-07-17 16:43:33 +00:00
|
|
|
,GIGABEAT_PAD,MROBE100_PAD,SANSA_FUZE_PAD,SANSA_FUZEPLUS_PAD}
|
2010-01-27 07:38:14 +00:00
|
|
|
{\ButtonPower}
|
2009-05-21 11:39:22 +00:00
|
|
|
\opt{GIGABEAT_S_PAD}{\ButtonBack}
|
2014-10-22 07:58:28 +00:00
|
|
|
\opt{PBELL_VIBE500_PAD,SAMSUNG_YH92X_PAD,SAMSUNG_YH820_PAD}{\ButtonRec}
|
2012-01-26 09:11:18 +00:00
|
|
|
\opt{MPIO_HD200_PAD}{\ButtonRec + \ButtonPlay}
|
|
|
|
\opt{MPIO_HD300_PAD}{Long \ButtonMenu}
|
Manual - plugin button tables: fill out missing info for the c200 pad (chip8emulator, doom, snake, snake2, wormlet), also update the table in clock.tex (was outdated for all and missing the mode and skin 'shortcuts'), add a small note about how to quit credits, change the list of the four direction buttons in some tex files (minesweeper, flipit, sudoku) so that the line can break and won't overlap, correct the position of } in rockblox.tex to not let the 'pause' line appear when it doesn't exist on a target. Break overly long lines.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@18535 a1c6a512-1295-4272-9138-f99709370657
2008-09-16 23:24:31 +00:00
|
|
|
\end{sideways}
|
2007-01-07 17:23:57 +00:00
|
|
|
&
|
2013-07-17 16:43:33 +00:00
|
|
|
% Key "0"
|
|
|
|
\begin{sideways}
|
|
|
|
\opt{SANSA_FUZEPLUS_PAD}{\ButtonVolDown}
|
|
|
|
\end{sideways}
|
2007-01-07 17:23:57 +00:00
|
|
|
&
|
|
|
|
% "Key "1"
|
|
|
|
\begin{sideways}
|
2013-07-17 16:43:33 +00:00
|
|
|
\opt{SANSA_FUZEPLUS_PAD}{\ButtonBack}
|
2007-01-14 09:55:19 +00:00
|
|
|
\opt{RECORDER_PAD}{\ButtonFOne}
|
2013-07-17 16:43:33 +00:00
|
|
|
\opt{ONDIO_PAD,SANSA_FUZEPLUS_PAD}{\ButtonUp}
|
2009-05-21 11:39:22 +00:00
|
|
|
\opt{GIGABEAT_PAD,GIGABEAT_S_PAD,MROBE100_PAD}{\ButtonMenu}
|
2012-01-26 09:11:18 +00:00
|
|
|
\opt{MPIO_HD200_PAD,MPIO_HD300_PAD}{\ButtonRew}
|
2007-01-07 17:23:57 +00:00
|
|
|
\end{sideways}
|
|
|
|
&
|
|
|
|
% Key "2"
|
|
|
|
\begin{sideways}
|
2010-01-27 07:38:14 +00:00
|
|
|
\opt{IPOD_4G_PAD,IPOD_3G_PAD,SANSA_E200_PAD,SANSA_FUZE_PAD}
|
|
|
|
{\ButtonScrollBack}
|
2009-05-21 11:39:22 +00:00
|
|
|
\opt{IRIVER_H100_PAD,IRIVER_H300_PAD,IAUDIO_X5_PAD,GIGABEAT_PAD%
|
2013-07-17 16:43:33 +00:00
|
|
|
,RECORDER_PAD,ONDIO_PAD,SANSA_FUZEPLUS_PAD,GIGABEAT_S_PAD%
|
2014-10-22 07:58:28 +00:00
|
|
|
,MROBE100_PAD,PBELL_VIBE500_PAD,SAMSUNG_YH92X_PAD,SAMSUNG_YH820_PAD}{\ButtonUp}
|
2008-01-29 17:15:01 +00:00
|
|
|
\opt{IRIVER_H10_PAD}{\ButtonScrollUp}
|
Manual - plugin button tables: fill out missing info for the c200 pad (chip8emulator, doom, snake, snake2, wormlet), also update the table in clock.tex (was outdated for all and missing the mode and skin 'shortcuts'), add a small note about how to quit credits, change the list of the four direction buttons in some tex files (minesweeper, flipit, sudoku) so that the line can break and won't overlap, correct the position of } in rockblox.tex to not let the 'pause' line appear when it doesn't exist on a target. Break overly long lines.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@18535 a1c6a512-1295-4272-9138-f99709370657
2008-09-16 23:24:31 +00:00
|
|
|
\opt{SANSA_C200_PAD}{\ButtonVolUp}
|
2012-01-26 09:11:18 +00:00
|
|
|
\opt{MPIO_HD200_PAD,MPIO_HD300_PAD}{\ButtonFF}
|
2007-01-07 17:23:57 +00:00
|
|
|
\end{sideways}
|
|
|
|
&
|
|
|
|
% Key "3"
|
|
|
|
\begin{sideways}
|
|
|
|
\opt{RECORDER_PAD}{\ButtonFThree}
|
2013-07-17 16:43:33 +00:00
|
|
|
\opt{MROBE100_PAD,SANSA_FUZEPLUS_PAD}{\ButtonPlay}
|
2009-05-21 11:39:22 +00:00
|
|
|
\opt{GIGABEAT_PAD,GIGABEAT_S_PAD}{\ButtonVolDown}
|
2012-01-26 09:11:18 +00:00
|
|
|
\opt{MPIO_HD200_PAD}{\ButtonFunc}
|
|
|
|
\opt{MPIO_HD300_PAD}{\ButtonMenu}
|
2007-01-07 17:23:57 +00:00
|
|
|
\end{sideways}
|
2009-05-21 11:39:22 +00:00
|
|
|
&
|
2007-01-07 17:23:57 +00:00
|
|
|
% Key "4"
|
|
|
|
\begin{sideways}
|
Manual - plugin button tables: fill out missing info for the c200 pad (chip8emulator, doom, snake, snake2, wormlet), also update the table in clock.tex (was outdated for all and missing the mode and skin 'shortcuts'), add a small note about how to quit credits, change the list of the four direction buttons in some tex files (minesweeper, flipit, sudoku) so that the line can break and won't overlap, correct the position of } in rockblox.tex to not let the 'pause' line appear when it doesn't exist on a target. Break overly long lines.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@18535 a1c6a512-1295-4272-9138-f99709370657
2008-09-16 23:24:31 +00:00
|
|
|
\opt{RECORDER_PAD,ONDIO_PAD,IRIVER_H100_PAD,IRIVER_H300_PAD,IPOD_4G_PAD%
|
2010-01-27 07:38:14 +00:00
|
|
|
,IPOD_3G_PAD,IAUDIO_X5_PAD,IRIVER_H10_PAD,SANSA_E200_PAD%
|
|
|
|
,SANSA_C200_PAD,GIGABEAT_PAD,GIGABEAT_S_PAD,MROBE100_PAD%
|
2014-10-22 07:58:28 +00:00
|
|
|
,SANSA_FUZE_PAD,PBELL_VIBE500_PAD,SANSA_FUZEPLUS_PAD,SAMSUNG_YH92X_PAD%
|
|
|
|
,SAMSUNG_YH820_PAD}{\ButtonLeft}
|
2012-01-26 09:11:18 +00:00
|
|
|
\opt{MPIO_HD200_PAD}{\ButtonRec}
|
|
|
|
\opt{MPIO_HD300_PAD}{\ButtonEnter}
|
2007-01-07 17:23:57 +00:00
|
|
|
\end{sideways}
|
|
|
|
&
|
|
|
|
% Key "5"
|
|
|
|
\begin{sideways}
|
2007-01-14 09:55:19 +00:00
|
|
|
\opt{RECORDER_PAD}{\ButtonPlay}
|
|
|
|
\opt{ONDIO_PAD}{\ButtonMenu}
|
Manual - plugin button tables: fill out missing info for the c200 pad (chip8emulator, doom, snake, snake2, wormlet), also update the table in clock.tex (was outdated for all and missing the mode and skin 'shortcuts'), add a small note about how to quit credits, change the list of the four direction buttons in some tex files (minesweeper, flipit, sudoku) so that the line can break and won't overlap, correct the position of } in rockblox.tex to not let the 'pause' line appear when it doesn't exist on a target. Break overly long lines.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@18535 a1c6a512-1295-4272-9138-f99709370657
2008-09-16 23:24:31 +00:00
|
|
|
\opt{IRIVER_H100_PAD,IRIVER_H300_PAD,IAUDIO_X5_PAD,SANSA_E200_PAD%
|
2010-01-27 07:38:14 +00:00
|
|
|
,SANSA_C200_PAD,GIGABEAT_PAD,GIGABEAT_S_PAD,MROBE100_PAD%
|
2013-07-17 16:43:33 +00:00
|
|
|
,SANSA_FUZE_PAD,SANSA_FUZEPLUS_PAD}
|
2010-01-27 07:38:14 +00:00
|
|
|
{\ButtonSelect}
|
2014-10-22 07:58:28 +00:00
|
|
|
\opt{IPOD_4G_PAD,IPOD_3G_PAD,IRIVER_H10_PAD,SAMSUNG_YH92X_PAD,SAMSUNG_YH820_PAD}%
|
|
|
|
{\ButtonPlay}
|
2010-04-19 17:03:03 +00:00
|
|
|
\opt{PBELL_VIBE500_PAD}{\ButtonOK}
|
2012-01-26 09:11:18 +00:00
|
|
|
\opt{MPIO_HD200_PAD}{\ButtonPlay}
|
|
|
|
\opt{MPIO_HD300_PAD}{\ButtonRec}
|
2007-01-07 17:23:57 +00:00
|
|
|
\end{sideways}
|
|
|
|
&
|
|
|
|
% Key "6"
|
|
|
|
\begin{sideways}
|
Manual - plugin button tables: fill out missing info for the c200 pad (chip8emulator, doom, snake, snake2, wormlet), also update the table in clock.tex (was outdated for all and missing the mode and skin 'shortcuts'), add a small note about how to quit credits, change the list of the four direction buttons in some tex files (minesweeper, flipit, sudoku) so that the line can break and won't overlap, correct the position of } in rockblox.tex to not let the 'pause' line appear when it doesn't exist on a target. Break overly long lines.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@18535 a1c6a512-1295-4272-9138-f99709370657
2008-09-16 23:24:31 +00:00
|
|
|
\opt{RECORDER_PAD,ONDIO_PAD,IRIVER_H100_PAD,IRIVER_H300_PAD,IPOD_4G_PAD%
|
2010-01-27 07:38:14 +00:00
|
|
|
,IPOD_3G_PAD,IAUDIO_X5_PAD,IRIVER_H10_PAD,SANSA_E200_PAD%
|
|
|
|
,SANSA_C200_PAD,GIGABEAT_PAD,GIGABEAT_S_PAD,MROBE100_PAD%
|
2014-10-22 07:58:28 +00:00
|
|
|
,SANSA_FUZE_PAD,PBELL_VIBE500_PAD,SANSA_FUZEPLUS_PAD,SAMSUNG_YH92X_PAD%
|
|
|
|
,SAMSUNG_YH820_PAD}{\ButtonRight}
|
2012-01-26 09:11:18 +00:00
|
|
|
\opt{MPIO_HD200_PAD}{\ButtonVolDown}
|
|
|
|
\opt{MPIO_HD300_PAD}{\ButtonPlay}
|
2007-01-07 17:23:57 +00:00
|
|
|
\end{sideways}
|
|
|
|
&
|
|
|
|
% Key "7"
|
|
|
|
\begin{sideways}
|
|
|
|
\opt{RECORDER_PAD}{\ButtonFTwo}
|
2008-03-18 09:24:35 +00:00
|
|
|
\opt{MROBE100_PAD}{\ButtonDisplay}
|
2009-05-21 11:39:22 +00:00
|
|
|
\opt{GIGABEAT_PAD,GIGABEAT_S_PAD}{\ButtonVolUp}
|
2012-01-26 09:11:18 +00:00
|
|
|
\opt{MPIO_HD200_PAD}{\ButtonVolUp}
|
|
|
|
\opt{MPIO_HD300_PAD}{\ButtonScrollUp}
|
2013-07-17 16:43:33 +00:00
|
|
|
\opt{SANSA_FUZEPLUS_PAD}{\ButtonBottomLeft}
|
2007-01-07 17:23:57 +00:00
|
|
|
\end{sideways}
|
|
|
|
&
|
|
|
|
% Key "8"
|
|
|
|
\begin{sideways}
|
2009-05-21 11:39:22 +00:00
|
|
|
\opt{RECORDER_PAD,ONDIO_PAD,IRIVER_H100_PAD,IRIVER_H300_PAD%
|
2014-10-15 14:23:34 +00:00
|
|
|
,GIGABEAT_PAD,GIGABEAT_S_PAD,MROBE100_PAD,PBELL_VIBE500_PAD,SAMSUNG_YH92X_PAD%
|
2014-10-22 07:58:28 +00:00
|
|
|
,SAMSUNG_YH820_PAD}{\ButtonDown}
|
2010-01-27 07:38:14 +00:00
|
|
|
\opt{IPOD_4G_PAD,IPOD_3G_PAD,SANSA_E200_PAD,SANSA_FUZE_PAD}
|
|
|
|
{\ButtonScrollFwd}
|
2013-07-17 16:43:33 +00:00
|
|
|
\opt{IAUDIO_X5_PAD,SANSA_FUZEPLUS_PAD}{\ButtonDown}
|
2012-01-26 09:11:18 +00:00
|
|
|
\opt{IRIVER_H10_PAD,MPIO_HD300_PAD}{\ButtonScrollDown}
|
Manual - plugin button tables: fill out missing info for the c200 pad (chip8emulator, doom, snake, snake2, wormlet), also update the table in clock.tex (was outdated for all and missing the mode and skin 'shortcuts'), add a small note about how to quit credits, change the list of the four direction buttons in some tex files (minesweeper, flipit, sudoku) so that the line can break and won't overlap, correct the position of } in rockblox.tex to not let the 'pause' line appear when it doesn't exist on a target. Break overly long lines.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@18535 a1c6a512-1295-4272-9138-f99709370657
2008-09-16 23:24:31 +00:00
|
|
|
\opt{SANSA_C200_PAD}{\ButtonVolDown}
|
2007-01-07 17:23:57 +00:00
|
|
|
\end{sideways}
|
|
|
|
&
|
|
|
|
% Key "9"
|
|
|
|
\begin{sideways}
|
|
|
|
\opt{RECORDER_PAD}{\ButtonOn}
|
2009-05-21 11:39:22 +00:00
|
|
|
\opt{GIGABEAT_PAD}{\ButtonA}
|
|
|
|
\opt{GIGABEAT_S_PAD}{\ButtonPlay}
|
2013-07-17 16:43:33 +00:00
|
|
|
\opt{SANSA_FUZEPLUS_PAD}{\ButtonBottomRight}
|
2007-01-07 17:23:57 +00:00
|
|
|
\end{sideways}
|
|
|
|
&
|
|
|
|
% Key "A"
|
2013-07-17 16:43:33 +00:00
|
|
|
\begin{sideways}
|
|
|
|
\opt{SANSA_FUZEPLUS_PAD}{\ButtonVolUp}
|
|
|
|
\end{sideways}
|
2007-01-07 17:23:57 +00:00
|
|
|
&
|
|
|
|
% Key "B"
|
|
|
|
&
|
|
|
|
% Key "C"
|
|
|
|
&
|
|
|
|
% Key "D"
|
|
|
|
&
|
|
|
|
% Key "E"
|
|
|
|
&
|
|
|
|
% Key "F"
|
|
|
|
\\\bottomrule
|
|
|
|
\end{tabularx}
|
|
|
|
\end{center}
|
2006-03-11 07:52:11 +00:00
|
|
|
\end{table}
|
2006-02-21 11:54:53 +00:00
|
|
|
|
2006-06-28 17:23:48 +00:00
|
|
|
Some places where can you can find \fname{.ch8} files:
|
2006-02-21 11:54:53 +00:00
|
|
|
\begin{itemize}
|
2006-03-11 07:52:11 +00:00
|
|
|
\item The PluginChip8 page on www.rockbox.org has several attached:
|
2006-07-22 14:02:07 +00:00
|
|
|
\wikilink{PluginChip8}
|
2006-02-21 11:54:53 +00:00
|
|
|
\item Check out the HP48 chip games section:
|
|
|
|
\url{http://www.hpcalc.org/hp48/games/chip/}
|
2006-03-11 07:52:11 +00:00
|
|
|
\item PC emulator by the guy who wrote the HP48 emulator:
|
2006-02-21 11:54:53 +00:00
|
|
|
\url{http://www.pdc.kth.se/~lfo/chip8/CHIP8.htm}
|
|
|
|
\item Links to other chip8 emulators:
|
|
|
|
\url{http://www.zophar.net/chip8.html}
|
|
|
|
\end{itemize}
|