<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="ca">
	<id>http://wiki.joanillo.org/index.php?action=history&amp;feed=atom&amp;title=Emulador_PiSNES_a_la_RPi_%28SNES%29</id>
	<title>Emulador PiSNES a la RPi (SNES) - Historial de revisió</title>
	<link rel="self" type="application/atom+xml" href="http://wiki.joanillo.org/index.php?action=history&amp;feed=atom&amp;title=Emulador_PiSNES_a_la_RPi_%28SNES%29"/>
	<link rel="alternate" type="text/html" href="http://wiki.joanillo.org/index.php?title=Emulador_PiSNES_a_la_RPi_(SNES)&amp;action=history"/>
	<updated>2026-08-30T10:10:41Z</updated>
	<subtitle>Historial de revisió per a aquesta pàgina del wiki</subtitle>
	<generator>MediaWiki 1.34.2</generator>
	<entry>
		<id>http://wiki.joanillo.org/index.php?title=Emulador_PiSNES_a_la_RPi_(SNES)&amp;diff=255707&amp;oldid=prev</id>
		<title>Joan: /* Botons */</title>
		<link rel="alternate" type="text/html" href="http://wiki.joanillo.org/index.php?title=Emulador_PiSNES_a_la_RPi_(SNES)&amp;diff=255707&amp;oldid=prev"/>
		<updated>2017-03-07T10:36:01Z</updated>

		<summary type="html">&lt;p&gt;&lt;span dir=&quot;auto&quot;&gt;&lt;span class=&quot;autocomment&quot;&gt;Botons&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;Pàgina nova&lt;/b&gt;&lt;/p&gt;&lt;div&gt;__TOC__&lt;br /&gt;
=Introducció=&lt;br /&gt;
=Instal.lació=&lt;br /&gt;
*http://sourceforge.net/projects/pisnes/&lt;br /&gt;
En aquest enllaç ja ve precompilat. Però com es comenta més avall, no té suport per a dos jugadors. I per tant hi ha disponible una modificació i s'ha de tornar a compilar.&lt;br /&gt;
==Instal.lació per a 2 jugadors==&lt;br /&gt;
Com es comenta a:&lt;br /&gt;
*https://holgatemark1-pisnes-2-player.googlecode.com/archive/67bbc0d57cc6032d73ce4dc1be258bf0c721ca23.zip&lt;br /&gt;
A la rpi&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
mkdir pisnes2p -&amp;gt; hi fico tot el codi&lt;br /&gt;
make&lt;br /&gt;
...&lt;br /&gt;
/usr/bin/ld: unix/unix.o: undefined reference to symbol 'clock_gettime@@GLIBC_2.4'&lt;br /&gt;
//lib/arm-linux-gnueabihf/librt.so.1: error adding symbols: DSO missing from command line&lt;br /&gt;
&lt;br /&gt;
en el Makefile, afegeixo a CFLAGS:&lt;br /&gt;
-lrt (una ela, no una i)&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
i encara s'han d'afegir més llibreries:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
/usr/bin/ld: dsp1.o: undefined reference to symbol 'tan@@GLIBC_2.4'&lt;br /&gt;
//lib/arm-linux-gnueabihf/libm.so.6: error adding symbols: DSO missing from command line&lt;br /&gt;
&lt;br /&gt;
-lm&lt;br /&gt;
&lt;br /&gt;
/usr/bin/ld: unix/unix.o: undefined reference to symbol 'snd_pcm_close@@ALSA_0.9'&lt;br /&gt;
//usr/lib/arm-linux-gnueabihf/libasound.so.2: error adding symbols: DSO missing from command line&lt;br /&gt;
&lt;br /&gt;
-lasound&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=ROMs=&lt;br /&gt;
==Snapshots de les ROMs==&lt;br /&gt;
En aquesta direcció hi ha molts recursos per descarregar, snapshots de les diferents consoles.&lt;br /&gt;
*http://emumovies.com/forums/index.php/files/file/825-neo-geo-cd-game-snaps/ &lt;br /&gt;
&lt;br /&gt;
Registre:&lt;br /&gt;
*username: joanillo&lt;br /&gt;
*joanqc@gmail.com&lt;br /&gt;
*jq**** &lt;br /&gt;
&lt;br /&gt;
Resolució 640x480 &lt;br /&gt;
=Configuració=&lt;br /&gt;
*https://supernintendopi.wordpress.com/&lt;br /&gt;
&lt;br /&gt;
Next you are going to use your controller and follow the prompts.  If your controller has less buttons than the config tries to setup (My SNES controllers lack the R2/L2, R3/L3, and Joysticks), then you need to select a dummy button (I used left trigger) for the buttons you don’t have. We will edit those out later (llegir-ho tot...).  Once this is done, it will bring you back to the terminal.&lt;br /&gt;
&lt;br /&gt;
rom descarregada d'aquí:&lt;br /&gt;
*http://romhustler.net/rom/snes/super-mario-world&lt;br /&gt;
&lt;br /&gt;
Descarrego les ROMs d'aquesta web. El problema està en què la rom està comprimida en format .7z. Descomprimeixo i torno a comprimir en format zip (que no quedin els fitxers dins una carpeta). I aleshores ja funciona:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$ ./snes9x roms Super\ Mario\ Bros.zip&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Si renombro el fitxer de manera que no tingui espais en blanc, també funciona. Per ex,&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$ ./snes9x roms supermariobros.zip&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Si ens fixem, aquestes ROMs contenen molts fitxers a dins. En canvi, la rom que he descarregat de Emuparadise (http://www.emuparadise.me/Super_Nintendo_Entertainment_System_%28SNES%29_ROMs/5) no funciona (dins del zip només hi ha un fitxer en format sfc).&lt;br /&gt;
&lt;br /&gt;
Si vull ficar les roms en el directori estàndar ''/home/pi/roms/pisnes'', com que ''pisnes'' m'obliga a què pengi del director ''roms/'' de la instal.lació, faig un soft link:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
ln -s /home/pi/roms/snes/ /home/pi/pisnes/roms (primer de tot elimino la carpeta /home/pi/pisnes/roms)&lt;br /&gt;
&lt;br /&gt;
Ara:&lt;br /&gt;
$ ls /home/pi/pisnes/roms&lt;br /&gt;
Super Double Dragon.7z&lt;br /&gt;
Super Mario Kart (E).sfc&lt;br /&gt;
...&lt;br /&gt;
però els fitxers realment estan a /home/pi/roms/pisnes&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Quantes ROMs hi ha?&lt;br /&gt;
&lt;br /&gt;
The US library is in the 700's. But when you factor in Super Famicom and SNES PAL games, there are easily well over 1,500.&lt;br /&gt;
&lt;br /&gt;
Que representen uns 6GB d'informació.&lt;br /&gt;
&lt;br /&gt;
Convertir molts fitxers .7z to zip. There is an easier way that I just figured out. Try installing ''atool''. Available in the *buntu and Mint repos, or here : *http://www.nongnu.org/atool/&lt;br /&gt;
&lt;br /&gt;
Sample Code:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
arepack -e --format={NEWFORMAT} *.{OLDFORMAT}&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$ sudo apt-get install atool&lt;br /&gt;
$ arepack -e --format=zip *.7z&lt;br /&gt;
&lt;br /&gt;
$ scp *.zip  pi@192.168.1.35:/home/pi/pisnes/roms&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Per reemplaçar els espais en blanc per _&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
for f in *\ *; do mv &amp;quot;$f&amp;quot; &amp;quot;${f// /_}&amp;quot;; done&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
==Resum==&lt;br /&gt;
Tinc vàries fonts de les roms, i bàsicament funcionen totes. El format .7z no funciona, però el que s'ha de fer és descomprimir i tornar a comprimir amb zip.&lt;br /&gt;
&lt;br /&gt;
La font més grossa de ROMs són els 3 arxius SNES.complete.romset.(No-Intro.dat.2005-07-17).[-#-H].7z (que contenen entre els 3 un total de 5G). Faré servir aquests, que són arxius .sfc. Però he de filtrar doncs molts d'ells estan repetits (agafaré preferentment l'opci-o (E), i també s'han de renombrar. D'entrada el que faig és carregar-me tots els que són (J).&lt;br /&gt;
==Millors jocs==&lt;br /&gt;
Els millors jocs de SNES: (per ordre)&lt;br /&gt;
*http://www.dorkly.com/post/18621/the-top-25-snes-games-of-all-time&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
The Legend of Zelda: A Link To The Past&lt;br /&gt;
Super Mario World&lt;br /&gt;
Super Mario Kart&lt;br /&gt;
Donkey Kong Country&lt;br /&gt;
Super Metroid&lt;br /&gt;
Chrono Trigger&lt;br /&gt;
Super Mario RPG&lt;br /&gt;
Mega Man X&lt;br /&gt;
Star Fox&lt;br /&gt;
Donkey Kong Country 2&lt;br /&gt;
Final Fantasy VI&lt;br /&gt;
Turtles in Time&lt;br /&gt;
Street Fighter II: Turbo&lt;br /&gt;
Super Mario World 2: Yoshi's Island&lt;br /&gt;
Mortal Kombat II&lt;br /&gt;
Final Fantasy IV&lt;br /&gt;
Mortal Kombat&lt;br /&gt;
Earthworm Jim&lt;br /&gt;
Super Castlevania IV &lt;br /&gt;
Secret of Mana&lt;br /&gt;
F-Zero&lt;br /&gt;
Kirby's Dream Land 3&lt;br /&gt;
Earthworm Jim 2 &lt;br /&gt;
Earthbound&lt;br /&gt;
Contra III: The Alien Wars&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Altres (llibre):&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
ActRaiser&lt;br /&gt;
Pilotwings&lt;br /&gt;
Super Tennis&lt;br /&gt;
The Legend of the Mystical Ninja&lt;br /&gt;
Pinball Dreams&lt;br /&gt;
Cybernator&lt;br /&gt;
Axelay&lt;br /&gt;
Plok&lt;br /&gt;
Breath of Fire II&lt;br /&gt;
Unirally&lt;br /&gt;
Super Punch-Out!!&lt;br /&gt;
Chrono Trigger&lt;br /&gt;
Harvest Moon&lt;br /&gt;
Donkey Kong Country 3&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
'up arrow'       Up direction&lt;br /&gt;
'down arrow'     Down direction&lt;br /&gt;
'left arrow'     Left direction&lt;br /&gt;
'right arrow'    Right direction&lt;br /&gt;
's'              X button&lt;br /&gt;
'x'              Y button&lt;br /&gt;
'd'              A button&lt;br /&gt;
'c'              B button&lt;br /&gt;
'a'              TL button&lt;br /&gt;
'f'              TR button&lt;br /&gt;
'return'         Start button&lt;br /&gt;
'tab'            Select button&lt;br /&gt;
'backspace'      Turbo&lt;br /&gt;
'escape'         Quit&lt;br /&gt;
F1-F4            Quickload 1-4&lt;br /&gt;
Shift F1-F4      Quicksave 1-4&lt;br /&gt;
&lt;br /&gt;
The joystick layout defaults to Saitek P380 button layout.&lt;br /&gt;
&lt;br /&gt;
Additionally to quit with the joystick you can press SELECT+START.&lt;br /&gt;
&lt;br /&gt;
All controls are configurable by editing the &amp;quot;snes9x.cfg&amp;quot; file. &lt;br /&gt;
&lt;br /&gt;
    ---TL---           ---TR---&lt;br /&gt;
&lt;br /&gt;
        ^                      X&lt;br /&gt;
        |&lt;br /&gt;
     &amp;lt;-   -&amp;gt;            Y     A&lt;br /&gt;
        |       /  /&lt;br /&gt;
        v                  B&lt;br /&gt;
&lt;br /&gt;
SNES no té botons de COIN/CREDIT. En canvi té els botons de SELECT i START&lt;br /&gt;
*https://es.answers.yahoo.com/question/index?qid=20120322202149AA1KnTt&lt;br /&gt;
Por lo general estan acomodados 3 arriba y 3 abajo, los de arriba son Golpes: Débil, Medio y Fuerte y los de abajo Patadas Débil, Media y Fuerte:&lt;br /&gt;
&lt;br /&gt;
Sería algo así:&lt;br /&gt;
&lt;br /&gt;
GD - GM - GF&lt;br /&gt;
PD - PM - PF&lt;br /&gt;
&lt;br /&gt;
G = Golpe, P= Patada. En Sner si mal no recuerdo los botones quedan así:&lt;br /&gt;
&lt;br /&gt;
Y = GD&lt;br /&gt;
X = GM&lt;br /&gt;
L = GF&lt;br /&gt;
&lt;br /&gt;
B = PD&lt;br /&gt;
A = PM&lt;br /&gt;
R = PF&lt;br /&gt;
&lt;br /&gt;
Las máquinas de Arcade de KI originales NO traen botones A,B,C,D,E,F. Ni siquiriera el NeoGeo el cual solo trae A,B,C,D. &lt;br /&gt;
&lt;br /&gt;
Fixar-se que a SNES no hi ha botó de crèdit, i tampoc es distingeix entre 1player, 2 player&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
==Botons==&lt;br /&gt;
''pisnes/snes9x.cfg'':&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
[Keyboard]&lt;br /&gt;
# Get codes from /usr/include/SDL/SDL_keysym.h&lt;br /&gt;
A_1=51&lt;br /&gt;
B_1=52&lt;br /&gt;
X_1=54&lt;br /&gt;
Y_1=55&lt;br /&gt;
L_1=53&lt;br /&gt;
R_1=56&lt;br /&gt;
START_1=49 &lt;br /&gt;
SELECT_1=50&lt;br /&gt;
LEFT_1=276 &lt;br /&gt;
RIGHT_1=275&lt;br /&gt;
UP_1=273  &lt;br /&gt;
DOWN_1=274&lt;br /&gt;
QUIT=48&lt;br /&gt;
ACCEL=8&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Però no admet 2 jugadors. Però la solució està aquí:&lt;br /&gt;
*http://piplay.org/forum/discussion/514/pisnes-second-player-controls-question/p1&lt;br /&gt;
i per tant SNES serà un emulador que s'ha d'implementar en les màquines de 2 jugadors.&lt;br /&gt;
&lt;br /&gt;
'''Configuració 2 jugadors''': (''pisnes2p/snes9x.cfg'')&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
[Keyboard]&lt;br /&gt;
# Get codes from /usr/include/SDL/SDL_keysym.h&lt;br /&gt;
A_1=51&lt;br /&gt;
B_1=52&lt;br /&gt;
X_1=54&lt;br /&gt;
Y_1=55&lt;br /&gt;
L_1=53&lt;br /&gt;
R_1=56&lt;br /&gt;
START_1=49 &lt;br /&gt;
SELECT_1=50&lt;br /&gt;
LEFT_1=276 &lt;br /&gt;
RIGHT_1=275&lt;br /&gt;
UP_1=273  &lt;br /&gt;
DOWN_1=274&lt;br /&gt;
QUIT=48&lt;br /&gt;
ACCEL=8&lt;br /&gt;
&lt;br /&gt;
#player 2 keyboard controls&lt;br /&gt;
A_2=97     &lt;br /&gt;
B_2=98     &lt;br /&gt;
X_2=100    &lt;br /&gt;
Y_2=101    &lt;br /&gt;
L_2=99     &lt;br /&gt;
R_2=102    &lt;br /&gt;
START_2=57 &lt;br /&gt;
SELECT_2=50&lt;br /&gt;
LEFT_2=106 &lt;br /&gt;
RIGHT_2=108&lt;br /&gt;
UP_2=105  &lt;br /&gt;
DOWN_2=107&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
{{Autor}}, febrer 2015&lt;/div&gt;</summary>
		<author><name>Joan</name></author>
		
	</entry>
</feed>