A modern Music Player Daemon based on Rockbox open source high quality audio player
libadwaita audio rust zig deno mpris rockbox mpd
at master 176 lines 6.7 kB view raw
1\subsection{\label{ref:Chip8emulator}Chip{}-8 Emulator} 2Chip8 is a kind of assembly language for a long-gone architecture. 3This plugin runs games written using the chip8 instructions. 4To start a game open a \fname{.ch8} file in the \setting{File Browser} 5 6There are lots of tiny Chip8 games (usually only about 256 bytes to a 7couple of KB) which were made popular by the HP48 8calculator's emulator for them. The original Chip8 had 964$\times$32 pixel graphics, and the new superchip emulator supports 128$\times$64 10graphics. 11 12The only problem is that they are based on a 4$\times$4 keyboard, but since most 13games do not use all of the buttons, this can easily be worked around. 14 15To do this, one may put a \fname{.c8k} file with the same name as the 16original program which contains new key mappings (for \fname{BLINKY.ch8}, one 17writes a \fname{BLINKY.c8k} file). That \fname{.c8k} file contains 16 18characters describing the mapping from the Chip8 keyboard to the default key 19mapping (that way, several Chip8 keys can be pressed using only one 20Rockbox key). For example, a file containing the single line: 21\begin{code} 22 0122458469ABCDEF 23\end{code} 24would correspond to the following non-default mappings: 25 263 $\rightarrow$ 2, 6 $\rightarrow$ 8, 7 $\rightarrow$4, 8 $\rightarrow$ 6. 27 28The default keymappings are: 29\begin{table} 30 \begin{center} 31 \begin{tabularx}{.9\textwidth}{c|ccccccccccccccccc} 32 \toprule 33 Chip8 & Off & 0 & 1 & 2 & 3 & 4 & 5 & 6 & 7 & 8 & 9 34 & A & B & C & D & E & F\\ 35 \midrule 36 \begin{sideways}Key\end{sideways} 37 & 38 % key "off" 39 \begin{sideways} 40 \opt{IRIVER_H100_PAD,IRIVER_H300_PAD}{\ButtonOff} 41 \opt{IPOD_4G_PAD,IPOD_3G_PAD}{\ButtonMenu} 42 \opt{IAUDIO_X5_PAD,IRIVER_H10_PAD,SANSA_E200_PAD,SANSA_C200_PAD% 43 ,GIGABEAT_PAD,MROBE100_PAD,SANSA_FUZE_PAD,SANSA_FUZEPLUS_PAD} 44 {\ButtonPower} 45 \opt{GIGABEAT_S_PAD}{\ButtonBack} 46 \opt{PBELL_VIBE500_PAD}{\ButtonRec} 47 \opt{SAMSUNG_YH92X_PAD,SAMSUNG_YH820_PAD}{\ButtonRew} 48 \opt{MPIO_HD200_PAD}{\ButtonRec + \ButtonPlay} 49 \opt{MPIO_HD300_PAD}{Long \ButtonMenu} 50 \end{sideways} 51 & 52 % Key "0" 53 \begin{sideways} 54 \opt{SANSA_FUZEPLUS_PAD}{\ButtonVolDown} 55 \opt{SAMSUNG_YH92X_PAD,SAMSUNG_YH820_PAD}{\ButtonFF} 56 \end{sideways} 57 & 58 % "Key "1" 59 \begin{sideways} 60 \opt{SANSA_FUZEPLUS_PAD}{\ButtonBack} 61 \opt{SANSA_FUZEPLUS_PAD}{\ButtonUp} 62 \opt{GIGABEAT_PAD,GIGABEAT_S_PAD,MROBE100_PAD}{\ButtonMenu} 63 \opt{MPIO_HD200_PAD,MPIO_HD300_PAD}{\ButtonRew} 64 \end{sideways} 65 & 66 % Key "2" 67 \begin{sideways} 68 \opt{IPOD_4G_PAD,IPOD_3G_PAD,SANSA_E200_PAD,SANSA_FUZE_PAD} 69 {\ButtonScrollBack} 70 \opt{IRIVER_H100_PAD,IRIVER_H300_PAD,IAUDIO_X5_PAD,GIGABEAT_PAD% 71 ,SANSA_FUZEPLUS_PAD,GIGABEAT_S_PAD% 72 ,MROBE100_PAD,PBELL_VIBE500_PAD,SAMSUNG_YH92X_PAD,SAMSUNG_YH820_PAD}{\ButtonUp} 73 \opt{IRIVER_H10_PAD}{\ButtonScrollUp} 74 \opt{SANSA_C200_PAD}{\ButtonVolUp} 75 \opt{MPIO_HD200_PAD,MPIO_HD300_PAD}{\ButtonFF} 76 \end{sideways} 77 & 78 % Key "3" 79 \begin{sideways} 80 \opt{MROBE100_PAD,SANSA_FUZEPLUS_PAD}{\ButtonPlay} 81 \opt{GIGABEAT_PAD,GIGABEAT_S_PAD}{\ButtonVolDown} 82 \opt{MPIO_HD200_PAD}{\ButtonFunc} 83 \opt{MPIO_HD300_PAD}{\ButtonMenu} 84 \end{sideways} 85 & 86 % Key "4" 87 \begin{sideways} 88 \opt{IRIVER_H100_PAD,IRIVER_H300_PAD,IPOD_4G_PAD% 89 ,IPOD_3G_PAD,IAUDIO_X5_PAD,IRIVER_H10_PAD,SANSA_E200_PAD% 90 ,SANSA_C200_PAD,GIGABEAT_PAD,GIGABEAT_S_PAD,MROBE100_PAD% 91 ,SANSA_FUZE_PAD,PBELL_VIBE500_PAD,SANSA_FUZEPLUS_PAD,SAMSUNG_YH92X_PAD% 92 ,SAMSUNG_YH820_PAD}{\ButtonLeft} 93 \opt{MPIO_HD200_PAD}{\ButtonRec} 94 \opt{MPIO_HD300_PAD}{\ButtonEnter} 95 \end{sideways} 96 & 97 % Key "5" 98 \begin{sideways} 99 \opt{IRIVER_H100_PAD,IRIVER_H300_PAD,IAUDIO_X5_PAD,SANSA_E200_PAD% 100 ,SANSA_C200_PAD,GIGABEAT_PAD,GIGABEAT_S_PAD,MROBE100_PAD% 101 ,SANSA_FUZE_PAD,SANSA_FUZEPLUS_PAD} 102 {\ButtonSelect} 103 \opt{IPOD_4G_PAD,IPOD_3G_PAD,IRIVER_H10_PAD,SAMSUNG_YH92X_PAD,SAMSUNG_YH820_PAD}% 104 {\ButtonPlay} 105 \opt{PBELL_VIBE500_PAD}{\ButtonOK} 106 \opt{MPIO_HD200_PAD}{\ButtonPlay} 107 \opt{MPIO_HD300_PAD}{\ButtonRec} 108 \end{sideways} 109 & 110 % Key "6" 111 \begin{sideways} 112 \opt{IRIVER_H100_PAD,IRIVER_H300_PAD,IPOD_4G_PAD% 113 ,IPOD_3G_PAD,IAUDIO_X5_PAD,IRIVER_H10_PAD,SANSA_E200_PAD% 114 ,SANSA_C200_PAD,GIGABEAT_PAD,GIGABEAT_S_PAD,MROBE100_PAD% 115 ,SANSA_FUZE_PAD,PBELL_VIBE500_PAD,SANSA_FUZEPLUS_PAD,SAMSUNG_YH92X_PAD% 116 ,SAMSUNG_YH820_PAD}{\ButtonRight} 117 \opt{MPIO_HD200_PAD}{\ButtonVolDown} 118 \opt{MPIO_HD300_PAD}{\ButtonPlay} 119 \end{sideways} 120 & 121 % Key "7" 122 \begin{sideways} 123 \opt{MROBE100_PAD}{\ButtonDisplay} 124 \opt{GIGABEAT_PAD,GIGABEAT_S_PAD}{\ButtonVolUp} 125 \opt{MPIO_HD200_PAD}{\ButtonVolUp} 126 \opt{MPIO_HD300_PAD}{\ButtonScrollUp} 127 \opt{SANSA_FUZEPLUS_PAD}{\ButtonBottomLeft} 128 \end{sideways} 129 & 130 % Key "8" 131 \begin{sideways} 132 \opt{IRIVER_H100_PAD,IRIVER_H300_PAD% 133 ,GIGABEAT_PAD,GIGABEAT_S_PAD,MROBE100_PAD,PBELL_VIBE500_PAD,SAMSUNG_YH92X_PAD% 134 ,SAMSUNG_YH820_PAD}{\ButtonDown} 135 \opt{IPOD_4G_PAD,IPOD_3G_PAD,SANSA_E200_PAD,SANSA_FUZE_PAD} 136 {\ButtonScrollFwd} 137 \opt{IAUDIO_X5_PAD,SANSA_FUZEPLUS_PAD}{\ButtonDown} 138 \opt{IRIVER_H10_PAD,MPIO_HD300_PAD}{\ButtonScrollDown} 139 \opt{SANSA_C200_PAD}{\ButtonVolDown} 140 \end{sideways} 141 & 142 % Key "9" 143 \begin{sideways} 144 \opt{GIGABEAT_PAD}{\ButtonA} 145 \opt{GIGABEAT_S_PAD}{\ButtonPlay} 146 \opt{SANSA_FUZEPLUS_PAD}{\ButtonBottomRight} 147 \end{sideways} 148 & 149 % Key "A" 150 \begin{sideways} 151 \opt{SANSA_FUZEPLUS_PAD}{\ButtonVolUp} 152 \end{sideways} 153 & 154 % Key "B" 155 & 156 % Key "C" 157 & 158 % Key "D" 159 & 160 % Key "E" 161 & 162 % Key "F" 163 \\\bottomrule 164 \end{tabularx} 165 \end{center} 166\end{table} 167 168Some places where can you can find \fname{.ch8} files: 169\begin{itemize} 170\item The PluginChip8 page on www.rockbox.org has several attached: 171\wikilink{PluginChip8} 172\item Check out the HP48 chip games section: 173\url{http://www.hpcalc.org/hp48/games/chip/} 174\item Links to other chip8 emulators: 175\url{http://www.zophar.net/chip8.html} 176\end{itemize}