DGEN(1) General Commands Manual DGEN(1)

dgenSega Genesis/Mega Drive emulator

dgen [-Pfhmv] [-R (J|U|E)] [-H HZ] [-D DEMONAME] [-d DEMONAME] [-n USEC] [-p CODE,CODE...] [-r RCFILE] [-X XFACT] [-Y YFACT] [-S FACT] [-g (0|1)] [-G XxY] [-s SLOT] [romname [...]]

The ROM image in the file romname is executed, as emulated on a Sega Genesis or Mega Drive running in 60Hz NTSC mode (unless the -P option is specified, in which case 50Hz PAL mode is used). romname should be in raw binary or SMD format, and may be compressed with gzip(1), zip(1), or bzip2(1).

When romname isn't specified, DGen starts without a ROM. It can be loaded later from the prompt. When more than a single romname is specified, they are executed sequentially.

The options are as follows:

HZ
Use a custom frame rate, can be used to accelerate or slow down emulation.
Emulate 50Hz PAL mode (as used in European models of the Mega Drive).
(J|U|E)
Emulator region. Without this option, DGen uses the first region mentioned in the ROM header. It should be combined with -P for PAL mode. See below.
(none)
Autodetect (NTSC, 60Hz)
Autodetect (PAL, 50Hz)
J
Japan (NTSC, 60Hz)
J -P
Japan (PAL, 50Hz)
E
Europe (NTSC, 60Hz, music will certainly play too fast)
E -P
Europe (PAL, 50Hz)
U
America (NTSC, 60Hz)
U -P
Same as -R E -P
Run fullscreen, if possible.
Show a brief synopsis of all options.
MinGW only. This option prevents DGen from detaching from its control console.
Show the version number, and exit.
DEMONAME
Play back a demo recorded with the -d option.
DEMONAME
Record a demo of the program running, which can be later replayed with the -D switch.
USEC
Sleep for a number of microseconds after every frame, to give time to other processes.
CODE,CODE...
Modify the ROM image in memory, using Game Genie or Hex style codes. Game Genie codes are of the form ABCD-EFGH and Hex codes are in the form 123456:ABCD. To specify more than one code, separate them with commas (do not use spaces).
RCFILE
Parse another rc file after $HOME/.dgen/dgenrc. Values in the specified file override those in the preceding files.
XFACT
Scale the window XFACT times in the X direction. XFACT must be a positive integer.
YFACT
Scale the window YFACT times in the Y direction. YFACT must be a positive integer.
FACT
Scale the window FACT times in both directions. FACT must be a positive integer.
(0|1)
Enable/disable OpenGL (if compiled-in).
XxY
Desired window size (e.g. 640x480, 800x600, etc.)
SLOT
Load the saved state from the given slot at startup (0-9)

A minimalist interactive prompt inspired from vi(1) can be used to perform various operations described below. It is triggered by pressing colon (:), the default key. Command-line editing, history and completion are supported.

{quit, exit, q}
Quit, or load the next romname from command-line, if any.
{load, open, plug, o} filename
Load a given ROM filename.
{unload, close, unplug}
Unload the current ROM.
config_load filename
Load configuration from file filename.
config_save filename
Save current configuration to file filename.
reset
Genesis reset.
{ctv_push, ctv_pop, ctv_none}
Manage the stack of Crap TV filters (if compiled-in).
calibrate number
Interactive calibration of the specified gamepad (1 or 2). If number isn't specified, default to 1.
unbind binding [...]
Remove specified bindings (variables prefixed with "bind_"). See dgenrc(5) for more information about them.
vgmdump start filename
 
vgmdump stop
Manages VGM dumping/logging. If the second argument is start VGM dumping will be started at the path specified by the third argument. If the second argument is stop VGM dumping will be stopped and the dump finalized.

All configuration variables from dgenrc(5) can be displayed and modified interactively, with immediate effect.

{int_name, bool_name, key_name, joy_name, ...} {value}
Affect value to variable name.
{int_name, bool_name, key_name, joy_name, ...}
Display current value for variable name.

$HOME/.dgen/dgenrc
Contains user settings for the emulator.
$HOME/.dgen/dgenrc.auto
Generated file containing saved user settings.
$HOME/.dgen/saves/*
Save states generated by the emulator.
$HOME/.dgen/ram/*
Battery-backup RAM images, generated by the emulator for ROMs with save RAM.
$HOME/.dgen/screenshots/*
Screenshots are generated there.
$HOME/.dgen/roms/*
ROMs default search path.
$HOME/.dgen/demos/*
Demos default search path.

gzip(1), bzip2(1), zip(1), dgenrc(5)

This manual page was written by Joe Groff ⟨joe@pknet.com⟩.
Updated by zamaz ⟨zamaz@users.sourceforge.net⟩.

There are known emulation bugs, see BUGS in DGen source package.


Report bugs to ⟨http://sourceforge.net/projects/dgen/⟩.

July 26, 2014 Linux 6.6.9-arch1-1