| 1 |
.\" Hey, EMACS: -*- nroff -*- |
| 2 |
.TH DOSBOX 1 "Aug 30, 2018" |
| 3 |
.\" Please adjust this date whenever revising the manpage. |
| 4 |
.SH NAME |
| 5 |
dosbox \- an x86/DOS emulator with sound/graphics |
| 6 |
.SH SYNOPSIS |
| 7 |
.B dosbox |
| 8 |
.B [\-fullscreen] |
| 9 |
.B [\-startmapper] |
| 10 |
.B [\-noautoexec] |
| 11 |
.B [\-securemode] |
| 12 |
.B [\-userconf] |
| 13 |
.BI "[\-scaler " scaler ] |
| 14 |
.BI "[\-forcescaler " scaler ] |
| 15 |
.BI "[\-conf " configfile ] |
| 16 |
.BI "[\-lang " langfile ] |
| 17 |
.B [file] |
| 18 |
.BI "[\-c " command ] |
| 19 |
.B [\-exit] |
| 20 |
.BI "[\-machine " machinetype ] |
| 21 |
.LP |
| 22 |
.B dosbox \-version |
| 23 |
.LP |
| 24 |
.BI "dosbox \-editconf" " program" |
| 25 |
.LP |
| 26 |
.BI "dosbox \-opencaptures" " program" |
| 27 |
.LP |
| 28 |
.B dosbox \-printconf |
| 29 |
.LP |
| 30 |
.B dosbox \-eraseconf |
| 31 |
.LP |
| 32 |
.B dosbox \-resetconf |
| 33 |
.LP |
| 34 |
.B dosbox \-erasemapper |
| 35 |
.LP |
| 36 |
.B dosbox \-resetmapper |
| 37 |
.SH DESCRIPTION |
| 38 |
This manual page briefly documents |
| 39 |
.BR "dosbox" ", an x86/DOS emulator." |
| 40 |
.LP |
| 41 |
.RB "The optional " file " argument should be a DOS executable or a" |
| 42 |
directory. If it is a dos executable (.com .exe .bat) the program will |
| 43 |
run automatically. If it is a directory, a DOS session will run with |
| 44 |
the directory mounted as C:\\. |
| 45 |
.LP |
| 46 |
.RI "For an introduction type " INTRO |
| 47 |
.RB "inside " dosbox . |
| 48 |
.SH OPTIONS |
| 49 |
A summary of options is included below. |
| 50 |
.TP |
| 51 |
.B \-fullscreen |
| 52 |
.RB "Start " dosbox " in fullscreen mode." |
| 53 |
.TP |
| 54 |
.B \-startmapper |
| 55 |
.RB "Start the internal keymapper on startup of " dosbox ". You can use it to change the keys " dosbox " uses." |
| 56 |
.TP |
| 57 |
.B \-noautoexec |
| 58 |
Skips the [autoexec] section of the loaded configuration file. |
| 59 |
.TP |
| 60 |
.B \-securemode |
| 61 |
.RB "Same as " \-noautoexec ", but adds " "config.com \-securemode" |
| 62 |
at the end of |
| 63 |
.I AUTOEXEC.BAT |
| 64 |
(which in turn disables any changes to how the drives are mounted |
| 65 |
.RB "inside " dosbox ) |
| 66 |
.TP |
| 67 |
.B \-userconf |
| 68 |
Load the configuration file located in ~/.dosbox. Can be combined with |
| 69 |
.RB "the " \-conf " option." |
| 70 |
.TP |
| 71 |
.BI \-scaler " scaler" |
| 72 |
.RI "Uses the graphical scaler specified by " scaler ". See the configuration" |
| 73 |
file for the available scalers |
| 74 |
.TP |
| 75 |
.BI \-forcescaler " scaler" |
| 76 |
.RB "Similar to the " \-scaler " parameter, but tries to force usage of" |
| 77 |
the specified scaler even if it might not fit. |
| 78 |
.TP |
| 79 |
.BI \-c " command" |
| 80 |
.RI "Runs the specified " command " before running " |
| 81 |
.BR file . |
| 82 |
.RI "Multiple commands can be specified. Each " command " should start with " |
| 83 |
.BR \-c " though. A command can be:" |
| 84 |
an Internal Program, a DOS command or an executable on a mounted drive. |
| 85 |
.TP |
| 86 |
.BI \-conf " configfile |
| 87 |
.RB "Start " dosbox " with the options specified in " |
| 88 |
.IR configfile ". This file has a section in which you can put commands you " |
| 89 |
wish to execute on startup. Multiple |
| 90 |
.IR configfiles " can be present at the commandline." |
| 91 |
.TP |
| 92 |
.BI \-lang " langfile |
| 93 |
.RB "Start " dosbox " with the language specified in " |
| 94 |
.IR langfile . |
| 95 |
.TP |
| 96 |
.B "\-exit " |
| 97 |
.BR "dosbox" " will close itself when the DOS program specified by "file " ends." |
| 98 |
.TP |
| 99 |
.BI \-machine " machinetype |
| 100 |
.RB "Setup " dosbox " to emulate a specific type of machine." |
| 101 |
.RI "Valid choices are: " "hercules, cga, tandy, pcjr, ega, vgaonly, svga_s3(default), svga_et3000, svga_et4000, svga_paradise, vesa_nolfb, vesa_oldvbe". |
| 102 |
The machinetype has influence on both the videocard and the available |
| 103 |
soundcards. |
| 104 |
.TP |
| 105 |
.B \-version |
| 106 |
Output version information and exit. Useful for frontends. |
| 107 |
.TP |
| 108 |
.BI \-editconf " program" |
| 109 |
.RI calls " program" " with as first parameter the configuration file." |
| 110 |
You can specify this command more than once. In this case it will |
| 111 |
.RI " move to second " program " if the first one fails to start." |
| 112 |
.TP |
| 113 |
.BI \-opencaptures " program" |
| •114 |
.RI "calls " program " with as first parameter the location of the captures folder." |
| 115 |
.TP |
| 116 |
.B \-printconf |
| 117 |
prints the location of the default configuration file. |
| 118 |
.TP |
| 119 |
.B \-eraseconf, \-resetconf |
| 120 |
removes the default configuration file. |
| 121 |
.TP |
| 122 |
.B \-erasemapper, \-resetmapper |
| 123 |
removes the mapperfile configured in the clean default configuration file. |
| 124 |
.SH "INTERNAL COMMANDS" |
| 125 |
.B dosbox |
| 126 |
supports most of the DOS commands found in command.com. In addition, the |
| 127 |
following extra commands are available: |
| 128 |
.HP |
| 129 |
.BI "MOUNT [\-t " type "] [\-size " size ] |
| 130 |
.I driveletter sourcedirectory |
| 131 |
.B [\-ioctl] |
| 132 |
.BI "[\-usecd " number "] [\-label " drivelabel "] [\-freesize " freesize ] |
| 133 |
.LP |
| 134 |
.B MOUNT \-cd |
| 135 |
.LP |
| 136 |
.B MOUNT \-u driveletter |
| 137 |
.LP |
| 138 |
.RB "Program to mount local directories as drives inside " dosbox . |
| 139 |
.RS |
| 140 |
.TP |
| 141 |
.I driveletter |
| 142 |
The driveletter inside dosbox (eg. C). |
| 143 |
.TP |
| 144 |
.I sourcedirectory |
| 145 |
The local directory you want to have inside dosbox. |
| 146 |
.TP |
| 147 |
.BI \-t " type" |
| 148 |
Type of the mounted directory. Supported are: dir (standard), floppy, cdrom. |
| 149 |
.TP |
| 150 |
.BI \-size " drivesize" |
| 151 |
Sets the size of the drive. See the examples in the README for details. |
| 152 |
.TP |
| 153 |
.BI \-freesize " size_in_mb" |
| 154 |
Sets the amount of free space available on a drive in MB's. This is a more |
| 155 |
.RB "simple version of " \-size . |
| 156 |
.TP |
| 157 |
.BI \-label " drivelabel" |
| 158 |
.RI "Sets the name of the drive to " drivelabel ". Needed on some" |
| 159 |
systems if the cd label isn't read correctly. Useful when a |
| 160 |
program can't find its cdrom. If you don't specify a label and no |
| 161 |
.RB "lowlevel support is selected (" "\-usecd #" " and/or " "\-ioctl/aspi" "):" |
| 162 |
.RS |
| 163 |
.LP |
| 164 |
For win32: label is extracted from "Real Drive". |
| 165 |
.TP |
| 166 |
For Linux: label is set to NO_LABEL. |
| 167 |
.TP |
| 168 |
If you do specify a label this label will be kept as long as the drive |
| 169 |
is mounted. It will not be updated !! |
| 170 |
.RE |
| 171 |
.TP |
| 172 |
.B \-ioctl |
| 173 |
Forces to use ioctl commands. |
| 174 |
.TP |
| 175 |
.BI \-usecd " number" |
| 176 |
Forces to use SDL cdrom support for drive number. |
| 177 |
.IR Number " can be found by " |
| 178 |
.BR \-cd ". |
| 179 |
.TP |
| 180 |
.B \-cd |
| 181 |
.RB "Displays all detected cdrom drives and their numbers. Use with " \-usecd "." |
| 182 |
.TP |
| 183 |
.B \-u |
| 184 |
Unmounts a mounted drive. Doesn't work on virtual Drives (like Z:\\) |
| 185 |
.RE |
| 186 |
.PP |
| 187 |
.B "Example:" |
| 188 |
.TP |
| 189 |
.RB "To mount your /home/dos/dosgames directory as C drive in " dosbox : |
| 190 |
.RS |
| 191 |
mount c /home/dos/dosgames |
| 192 |
.RE |
| 193 |
.TP |
| 194 |
.B MEM |
| 195 |
.LP |
| 196 |
Display the amount of free memory |
| 197 |
.TP |
| 198 |
.B CONFIG [\-writeconf] [\-writelang] file |
| 199 |
.LP |
| 200 |
.B CONFIG \-securemode |
| 201 |
.LP |
| 202 |
.RB "Write the current configuration or language settings to " file , |
| 203 |
which is located on the local filesystem. Not a mounted drive in |
| 204 |
.BR dosbox . |
| 205 |
.RS |
| 206 |
.TP |
| 207 |
.B \-securemode |
| 208 |
.RB Switches dosbox " to a more secure mode. In this mode the" |
| •209 |
.RI "internal commands " MOUNT ", " IMGMOUNT " and " BOOT " won't work." |
| 210 |
It's not possible |
| 211 |
either to create a new configfile or languagefile in this mode. |
| 212 |
(Warning you can only undo this mode by restarting |
| 213 |
.BR dosbox .) |
| 214 |
.RE |
| 215 |
.LP |
| 216 |
The configuration file controls various settings of |
| 217 |
.BR dosbox ": The amount of emulated memory," |
| 218 |
the emulated soundcards and many |
| •219 |
.RI "more things. It further allows access to " AUTOEXEC.BAT . |
| 220 |
.LP |
| 221 |
The language file controls all visible output of the internal commands and |
| 222 |
the internal dos. |
| 223 |
.RB "See the section " FILES " for more information." |
| 224 |
.TP |
| 225 |
.B LOADFIX [\-size] [programname] [parameters] |
| 226 |
.LP |
| 227 |
.B LOADFIX \-f |
| 228 |
.LP |
| 229 |
Program to reduce the amount of memory available. Useful for old programs which don't expect much memory to be free. |
| 230 |
.RS |
| 231 |
.TP |
| 232 |
.B [programname] |
| 233 |
The name of the program which is executed after loadfix eats up its memory. |
| 234 |
.TP |
| 235 |
.B [parameters] |
| 236 |
.RB "Parameters given to the " programname " executable." |
| 237 |
.TP |
| 238 |
.B \-size |
| 239 |
The amount of memory to eat up (in kb). Example \-32, \-64 or \-128 |
| 240 |
.TP |
| 241 |
.B \-f |
| 242 |
Frees all memory eaten up by loadfix. |
| 243 |
.RE |
| 244 |
.TP |
| 245 |
.B RESCAN |
| 246 |
.LP |
| 247 |
.RB "Make " dosbox " reread the directory structure. Useful if you changed |
| 248 |
.RB "something on a mounted drive outside " dosbox ".(CTRL\-F4 does" |
| 249 |
this as well!) |
| 250 |
.TP |
| 251 |
.B IMGMOUNT |
| 252 |
.LP |
| 253 |
.RB "A utility to mount disk images and CD\(hyROM images in " dosbox . |
| 254 |
.TP |
| 255 |
.RB "Read the " README " of " dosbox " for the full and correct syntax." |
| 256 |
.RE |
| 257 |
.TP |
| 258 |
.B BOOT |
| 259 |
.LP |
| 260 |
Boot will start floppy images or hard disk images independent of the |
| 261 |
.RB "operating system emulation offered by " dosbox ". This will allow you to play booter floppies or boot to other operating systems inside " dosbox . |
| 262 |
.TP |
| 263 |
.RB "Read the " README " of " dosbox " for the full and correct syntax." |
| 264 |
.RE |
| 265 |
.TP |
| 266 |
.B IPX |
| 267 |
.LP |
| 268 |
.RB "You need to enable IPX networking in the configuration file of " dosbox . |
| 269 |
.RB "All of the IPX networking is managed through the internal " dosbox " program |
| 270 |
.BR IPXNET ". For help on the IPX networking from inside " dosbox ", type" |
| 271 |
.BR "IPXNET HELP" " and the program will list out the commands and relevant documentation." |
| 272 |
.TP |
| 273 |
.RB "Read the " README " of " dosbox " for the full and correct syntax." |
| 274 |
.RE |
| 275 |
.TP |
| 276 |
.B KEYB |
| 277 |
.LP |
| 278 |
Keyb can change the keyboardlayout and the codepage used inside dosbox. |
| 279 |
.TP |
| 280 |
.RB "Read the " README " of " dosbox " for the full and correct syntax." |
| 281 |
.RE |
| 282 |
.SH FILES |
| 283 |
Configuration and language files use a format similar to Windows .ini files. |
| 284 |
If no configfile is specified at the commandline, a file named |
| 285 |
.BR dosbox.conf " (if present in the current directory) will be" |
| 286 |
loaded automatically. If a configfile is specified at the commandline |
| 287 |
that one will be used instead. If no configfile is specified or found |
| 288 |
in the current directory |
| 289 |
.RB " then dosbox will load one from " ~/.dosbox/ ". It will try to create " |
| 290 |
one if there is none. |
| 291 |
.SH "SPECIAL KEYS" |
| 292 |
.TP 12m |
| 293 |
.IP ALT\-ENTER |
| 294 |
Go full screen and back. |
| 295 |
.IP ALT\-PAUSE |
| 296 |
Pause emulation. |
| 297 |
.IP CTRL\-F1 |
| 298 |
Start the keymapper. |
| 299 |
.IP CTRL\-ALT\-F5 |
| 300 |
Start/Stop creating a movie of the screen. |
| 301 |
.IP CTRL\-F4 |
| 302 |
Swap mounted disk\(hyimage (Only used with imgmount). Update directory cache |
| 303 |
for all drives! |
| 304 |
.IP CTRL\-F5 |
| 305 |
Save a screenshot.(png) |
| 306 |
.IP CTRL\-F6 |
| 307 |
Start/Stop recording sound output to a wave file. |
| 308 |
.IP CTRL\-ALT\-F7 |
| 309 |
Start/Stop recording of OPL commands. |
| 310 |
.IP CTRL\-ALT\-F8 |
| 311 |
Start/Stop the recording of raw MIDI commands. |
| 312 |
.IP CTRL\-F7 |
| 313 |
Decrease frameskip. |
| 314 |
.IP CTRL\-F8 |
| 315 |
Increase frameskip. |
| 316 |
.IP CTRL\-F9 |
| 317 |
Kill dosbox. |
| 318 |
.IP CTRL\-F10 |
| 319 |
Capture/Release the mouse. |
| 320 |
.IP CTRL\-F11 |
| 321 |
Slow down emulation (Increase dosbox Cycles). |
| 322 |
.IP CTRL\-F12 |
| 323 |
Speed up emulation (Decrease dosbox Cycles). |
| 324 |
.IP ALT\-F12 |
| 325 |
Unlock speed (turbo button). |
| 326 |
.PP |
| 327 |
These are the default keybindings. They can be changed in the keymapper. |
| 328 |
.PP |
| 329 |
Saved/recorded files can be found in current_directory/capture |
| 330 |
(can be changed in the configfile). |
| 331 |
.RB "The directory has to exist prior to starting " dosbox " else nothing" |
| 332 |
gets saved/recorded ! |
| 333 |
.PP |
| 334 |
.BR "Note: " "Once you increase your " dosbox " cycles beyond your computer's maximum |
| 335 |
capacity, it will produce the same effect as slowing down the emulation. |
| 336 |
This maximum will vary from computer to computer, there is no standard. |
| 337 |
.SH "SYSTEM REQUIREMENTS" |
| 338 |
Fast machine. My guess would be Pentium\-2 400+ to get decent emulation |
| 339 |
of games written for an 286 machine. |
| 340 |
For protected mode games a 1 Ghz machine is recommended and don't expect |
| 341 |
them to run fast though!! Be sure to read the next section on how to speed |
| 342 |
it up somewhat. |
| 343 |
.SS "To run resource\-demanding games" |
| 344 |
.BR dosbox " emulates the CPU, the sound and graphic cards, and some other" |
| 345 |
.RB " stuff, all at the same time. You can overclock " dosbox " by using CTRL\-F12, but" |
| 346 |
you'll be limited by the power of your actual CPU. You can see how much free |
| 347 |
time your true CPU has by various utils (top). Once 100% of your real CPU time is |
| 348 |
.RB "used there is no further way to speed up " dosbox " unless you reduce the load" |
| 349 |
.RB "generated by the non\-CPU parts of " dosbox . |
| 350 |
.PP |
| 351 |
So: |
| 352 |
.PP |
| 353 |
.RB "Close every program but " dosbox . |
| 354 |
.PP |
| 355 |
.RB "Overclock " dosbox " until 100% of your CPU is used.(CTRL\-F12)" |
| 356 |
.PP |
| 357 |
.RB "Since VGA emulation is the most demanding part of " dosbox " in terms of actual" |
| 358 |
CPU usage, we'll start here. Increase the number of frames skipped (in |
| 359 |
increments of one) by pressing CTRL\-F8. Your CPU usage should decrease. |
| 360 |
Go back one step and repeat this until the game runs fast enough for you. |
| 361 |
Please note that this is a trade off: you lose in fluidity of video what you |
| 362 |
gain in speed. |
| 363 |
.SH NOTES |
| 364 |
.RB "While we hope that, one day, " dosbox " will run virtually all programs ever made for the PC..." |
| 365 |
.RB "we are not there yet. At present, " dosbox " run on a 1.7 Gigahertz PC is roughly the equivalent of a 25MHz 386 PC." |
| 366 |
While the 0.60 release has added support for "protected mode" allowing for more complex and recent programs, |
| 367 |
but note that this support is early in development and nowhere near as complete as the support for 386 real\-mode |
| 368 |
games (or earlier). Also note that "protected mode" games need substantially more resources and may |
| 369 |
.RB "require a much faster processor for you to run it properly in " dosbox . |
| 370 |
.SH BUGS |
| 371 |
Not all DOS programs work properly. |
| 372 |
.BR dosbox " will exit without warning if an error occurred." |
| 373 |
.SH "SEE ALSO" |
| 374 |
The README in /usr/share/doc/dosbox |
| 375 |
.SH AUTHOR |
| 376 |
This manual page was written by Peter Veenstra <[email protected]> and James Oakley <[email protected]>, |
| 377 |
for the Debian system (but may be used by others). |