2014-03-03 06:06:40 +00:00
.TH NINTENDO 1
.SH NAME
2014-11-10 06:05:18 +00:00
gb, gba, nes, snes \- emulators
2014-03-03 06:06:40 +00:00
.SH SYNOPSIS
.B games/gb
[
2020-01-29 18:27:07 +00:00
.B -acd
2015-04-10 22:32:22 +00:00
]
[
.B -C
.I ...
2018-06-13 12:05:19 +00:00
] [
.B -x
.I scale
2014-03-03 06:06:40 +00:00
]
.I romfile
.br
2014-11-10 06:05:18 +00:00
.B games/gba
[
2020-01-29 18:27:07 +00:00
.B -a
2014-11-10 06:05:18 +00:00
] [
.B -b
.I biosfile
] [
.B -s
.I savetype
2018-06-13 12:05:19 +00:00
] [
.B -x
.I scale
2014-11-10 06:05:18 +00:00
]
.I romfile
.br
2014-03-03 06:06:40 +00:00
.B games/nes
[
2018-05-12 17:20:53 +00:00
.B -aos
2018-06-13 12:05:19 +00:00
] [
.B -x
.I scale
2014-07-22 21:44:46 +00:00
]
.I romfile
.br
.B games/snes
[
2020-01-29 18:27:07 +00:00
.B -ahms
2018-06-13 12:05:19 +00:00
] [
.B -x
.I scale
2014-03-03 06:06:40 +00:00
]
.I romfile
.SH DESCRIPTION
2014-07-22 21:44:46 +00:00
.I Gb,
2014-11-10 06:05:18 +00:00
.I gba,
2014-03-04 22:10:31 +00:00
.I nes
2014-07-22 21:44:46 +00:00
and
.I snes
2015-04-12 03:34:25 +00:00
are emulators for the Nintendo Game Boy and Game Boy Color (GB and GBC), Nintendo Game Boy Advance (GBA), Nintendo Entertainment System (NES), and Super Nintendo Entertainment System (SNES).
2014-03-04 22:10:31 +00:00
They execute the romfile given as an argument.
2020-01-29 18:27:07 +00:00
The \fBz\fR, \fBx\fR, \fBa\fR, \fBs\fR, \fBq\fR, \fBw, \fRreturn and shift keys correspond to B, A, Y, X, L1, L2, Start and Select, respectively.
2014-03-04 22:10:31 +00:00
Other keys:
.TP
2020-01-29 18:27:07 +00:00
F1
Pause the emulator. If already paused it will step one video frame.
.TP
2014-03-04 22:10:31 +00:00
F5
2014-11-10 06:05:18 +00:00
Save the current state in \fBgb.save\fR / \fBgba.save\fR / \fBnes.save\fR / \fBsnes.save\fR.
2014-03-04 22:10:31 +00:00
.TP
F6
2014-11-10 06:05:18 +00:00
Load the current state from \fBgb.save\fR / \fBgba.save\fR / \fBnes.save\fR / \fBsnes.save\fR.
2014-03-04 22:10:31 +00:00
.TP
2020-01-29 18:27:07 +00:00
F12
Toggle the emulator's speedometer. It shows in the upper left,
off-viewport corner, the ratio between the expected and observed time it
took to draw 60 frames.
.TP
t
Toggle tracing of the emulator.
.TP
`
It uncaps the 60fps frame rate and lets emulation go as fast as possible.
.TP
2014-03-04 22:10:31 +00:00
Esc
Pause the emulator.
.TP
Del
Exit the emulator.
.PP
Command line options:
.TP
2014-03-03 06:06:40 +00:00
.B -a
2014-03-04 22:10:31 +00:00
Enable audio output.
2018-06-13 12:05:19 +00:00
.TP
.B -x
Scale the screen to a given factor regardless of the window's size.
2015-04-10 22:32:22 +00:00
.PP
.B gb
options:
.TP
.B -c
Run GBC roms in GBC mode and DMG (GB) roms in GBC's DMG compatibility mode.
.TP
.B -d
2015-04-12 03:34:25 +00:00
Run GB roms in DMG mode. GBC-only roms will not run in this mode; others will run only in black & white.
2015-04-10 22:32:22 +00:00
.TP
.BI -C nnnnnn,nnnnnn,nnnnnn,nnnnnn
Select a color palette. Has no effect on roms in color mode. The syntax is of the form -C ffffff,aaaaaa,555555,000000 (using HTML style rrggbb notation).
2014-07-22 21:44:46 +00:00
.PP
2014-11-10 06:05:18 +00:00
.B gba
options:
.TP
.B -b
2014-11-11 19:57:45 +00:00
Location of the GBA BIOS file (required to operate the emulator). Default is \fB/sys/games/lib/gbabios.bin\fR.
2014-11-10 06:05:18 +00:00
.TP
.B -s
2014-11-11 19:57:45 +00:00
Save format used by the original game. Valid formats are: eeprom4, eeprom64, sram256, flash512, flash1024. The number corresponds to the size, in kilobits, of the save file. By default, the emulator attempts to automatically detect the save format, but does not always succeed.
2022-02-10 00:35:13 +00:00
Some roms require a specific flash device id which may need to be set manually for them to work.
Valid formats and corresponding ids are:
flash512 (SST), flash512mx (Macronix 64K), flash512pan (Panasonic), flash512atm (Atmel),
flash1024 (Macronix 128K), flash1024san (Sanyo).
2014-11-10 06:05:18 +00:00
.PP
2014-07-22 21:44:46 +00:00
.B nes
options:
2014-03-04 22:10:31 +00:00
.TP
.B -o
Hide the top and bottom eight pixels (overscan area), like a real television would.
2014-07-22 21:44:46 +00:00
.TP
.B -s
Save contents of battery backed SRAM (used by some games for savegames) as a file (\fIgb\fR and \fIsnes\fR automatically detect if this is needed).
.PP
.B snes
options:
.TP
.B -h
Override HiROM/LoROM detection:
.B -h
sets LoROM,
.B -hh
sets HiROM.
.TP
.B -m
Enable mouse emulation using system mouse. Mouse button 1 (left button) engages the SNES left mouse button. Mouse button 3 (right button) engages the SNES right mouse button. Holding down mouse button 2 (middle button) disengages the SNES mouse entirely so that the Plan 9 cursor offset can be adjusted to align with the SNES cursor.
2021-09-01 22:47:30 +00:00
.PP
Each of these emulators support the use of joysticks via
.IR joy (1).
.I Nes
also supports selecting the joystick for either player 1 or 2.
2014-03-04 23:05:43 +00:00
.SH SOURCE
.B /sys/src/games/gb
.br
2015-03-30 13:55:50 +00:00
.B /sys/src/games/gba
.br
2014-03-04 23:05:43 +00:00
.B /sys/src/games/nes
2014-07-22 21:44:46 +00:00
.br
.B /sys/src/games/snes
2014-03-03 06:06:40 +00:00
.SH BUGS
You bet!
2014-07-22 21:44:46 +00:00
.br
SRAM saving on the NES only functions when the
.B -s
option is used.
.br
The SNES horizontal hires mode is supported only with
.B -2
scaling.
2014-11-16 14:17:34 +00:00
.br
All emulators assume a North American (i.e. NTSC) system. PAL games (and in some cases Japanese games) are not supported.
2014-03-03 06:06:40 +00:00
.SH HISTORY
.I Gb
first appeared in 9front (April, 2012).
.br
2014-11-10 06:05:18 +00:00
.I Gba
first appeared in 9front (September, 2014).
.br
2014-03-03 06:06:40 +00:00
.I Nes
first appeared in 9front (February, 2014).
2014-07-22 21:44:46 +00:00
.br
.I Snes
first appeared in 9front (March, 2014).