-
Notifications
You must be signed in to change notification settings - Fork 1
/
dgen.1
208 lines (208 loc) · 5.45 KB
/
dgen.1
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
.Dd July 26, 2014
.Dt DGEN 1
.Os
.Sh NAME
.Nm dgen
.Nd Sega Genesis/Mega Drive emulator
.Sh SYNOPSIS
.Nm dgen
.Op Fl Pfhmv
.Op Fl R Ar (J|U|E)
.Op Fl H Ar HZ
.Op Fl D Ar DEMONAME
.Op Fl d Ar DEMONAME
.Op Fl n Ar USEC
.Op Fl p Ar CODE,CODE...
.Op Fl r Ar RCFILE
.Op Fl X Ar XFACT
.Op Fl Y Ar YFACT
.Op Fl S Ar FACT
.Op Fl g Ar (0|1)
.Op Fl G Ar XxY
.Op Fl s Ar SLOT
.Ar [romname [...]]
.Sh DESCRIPTION
The ROM image in the file
.Ar romname
is executed, as emulated on a Sega Genesis or Mega Drive running in 60Hz NTSC
mode (unless the
.Fl P
option is specified, in which case 50Hz PAL mode is used).
.Ar romname
should be in raw binary or SMD format, and may be compressed with
.Xr gzip 1 ,
.Xr zip 1 , or
.Xr bzip2 1 .
.Pp
When
.Ar romname
isn't specified, DGen starts without a ROM. It can be loaded later from the
prompt. When more than a single
.Ar romname
is specified, they are executed sequentially.
.Pp
The options are as follows:
.Bl -tag -width Fl
.It Fl H Ar HZ
Use a custom frame rate, can be used to accelerate or slow down emulation.
.It Fl P
Emulate 50Hz PAL mode (as used in European models of the Mega Drive).
.It Fl R Ar (J|U|E)
Emulator region. Without this option, DGen uses the first region mentioned in
the ROM header. It should be combined with
.Fl P
for PAL mode. See below.
.Bl -tag -width Fl
.It (none)
Autodetect (NTSC, 60Hz)
.It Fl P
Autodetect (PAL, 50Hz)
.It Fl R Ar J
Japan (NTSC, 60Hz)
.It Fl R Ar J Fl P
Japan (PAL, 50Hz)
.It Fl R Ar E
Europe (NTSC, 60Hz, music will certainly play too fast)
.It Fl R Ar E Fl P
Europe (PAL, 50Hz)
.It Fl R Ar U
America (NTSC, 60Hz)
.It Fl R Ar U Fl P
Same as
.Fl R Ar E Fl P
.El
.It Fl f
Run fullscreen, if possible.
.It Fl h
Show a brief synopsis of all options.
.It Fl m
MinGW only. This option prevents DGen from detaching from its control console.
.It Fl v
Show the version number, and exit.
.It Fl D Ar DEMONAME
Play back a demo recorded with the
.Fl d
option.
.It Fl d Ar DEMONAME
Record a demo of the program running, which can be later replayed with the
.Fl D
switch.
.It Fl n Ar USEC
Sleep for a number of microseconds after every frame, to give time to other
processes.
.It Fl p Ar CODE,CODE...
Modify the ROM image in memory, using Game Genie or Hex style codes. Game
Genie codes are of the form
.Ar ABCD-EFGH
and Hex codes are in the form
.Ar 123456:ABCD .
To specify more than one code, separate them with commas (do
.Ar not
use spaces).
.It Fl r Ar RCFILE
Parse another rc file after $HOME/.dgen/dgenrc. Values in the specified file
override those in the preceding files.
.It Fl X Ar XFACT
Scale the window XFACT times in the X direction. XFACT must be a positive
integer.
.It Fl Y Ar YFACT
Scale the window YFACT times in the Y direction. YFACT must be a positive
integer.
.It Fl S Ar FACT
Scale the window FACT times in both directions. FACT must be a positive integer.
.It Fl g Ar (0|1)
Enable/disable OpenGL (if compiled-in).
.It Fl G Ar XxY
Desired window size (e.g. 640x480, 800x600, etc.)
.It Fl s Ar SLOT
Load the saved state from the given slot at startup (0-9)
.El
.Sh INTERACTIVE PROMPT
A minimalist interactive prompt inspired from
.Xr 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.
.Ss Commands
.Bl -tag -width xxxx
.It {quit, exit, q}
Quit, or load the next
.Ar romname
from command-line, if any.
.It {load, open, plug, o} Ar filename
Load a given ROM
.Ar filename .
.It {unload, close, unplug}
Unload the current ROM.
.It config_load Ar filename
Load configuration from file
.Ar filename .
.It config_save Ar filename
Save current configuration to file
.Ar filename .
.It reset
Genesis reset.
.It {ctv_push, ctv_pop, ctv_none}
Manage the stack of Crap TV filters (if compiled-in).
.It calibrate Ar number
Interactive calibration of the specified gamepad (1 or 2). If
.Ar number
isn't specified, default to 1.
.It unbind Ar binding [...]
Remove specified bindings (variables prefixed with "bind_").
See
.Xr dgenrc 5
for more information about them.
.It vgmdump start Ar filename
.It vgmdump stop
Manages VGM dumping/logging. If the second argument is
.Ar start
VGM dumping will be started at the path specified by the third argument.
If the second argument is
.Ar stop
VGM dumping will be stopped and the dump finalized.
.El
.Ss Variables
All configuration variables from
.Xr dgenrc 5
can be displayed and modified interactively, with immediate effect.
.Bl -tag -width xxxx
.It {int_name, bool_name, key_name, joy_name, ...} {value}
Affect
.Ar value
to variable
.Ar name .
.It {int_name, bool_name, key_name, joy_name, ...}
Display current value for variable
.Ar name .
.El
.Sh FILES
.Bl -tag -width $HOME/.dgen/dgen/saves/* -compact
.It Pa $HOME/.dgen/dgenrc
Contains user settings for the emulator.
.It Pa $HOME/.dgen/dgenrc.auto
Generated file containing saved user settings.
.It Pa $HOME/.dgen/saves/*
Save states generated by the emulator.
.It Pa $HOME/.dgen/ram/*
Battery-backup RAM images, generated by the emulator for ROMs with save RAM.
.It Pa $HOME/.dgen/screenshots/*
Screenshots are generated there.
.It Pa $HOME/.dgen/roms/*
ROMs default search path.
.It Pa $HOME/.dgen/demos/*
Demos default search path.
.El
.Sh SEE ALSO
.Xr gzip 1 ,
.Xr bzip2 1 ,
.Xr zip 1 ,
.Xr dgenrc 5
.Sh AUTHORS
This manual page was written by
.An Joe Groff Aq joe@pknet.com .
.An Updated by zamaz Aq zamaz@users.sourceforge.net .
.Sh BUGS
There are known emulation bugs, see BUGS in DGen source package.
.Pp
.An Report bugs to Aq http://sourceforge.net/projects/dgen/ .