dosboxļ


ϣһ죬DOSboxʵϿԲϵΪPCƵĳ...ĿǰDOSboxڸ߶˻ϵг̶ȴԵ˵486ĵͶ˻ͬǵӺͽļƻ0.60֧֡ģʽֻ֧ڷչԶûдﵽ386ʵģʽ֧һҪעҪСģʽҪĴͺķѸӶϵͳԴ

dosbox÷(ڳݷʽ)
dosbox [name] [-exit] [-c command] [-fullscreen] [-conf congfigfile] 
[-lang languagefile] [-machine machinetype] [-noconsole]

Name
NameǸĿ¼ôװCͬĿ¼
NameǸִļôװcͬĿ¼²ִļ

Exit
DOSboxִļ˳

C command
СName֮ǰָָÿӦӣCʼ

Fullscreen
ȫ

-conf configfile
Start dosbox with the options specified in "configfile".
ʼDOSboxѡָṹ

lang languagefile
Start dosbox using the language string specified in "languagefile".
ָļ

noconsole (Windows Only)Start dosbox without showing the console window, output will be redirected to stdout.txt and stderr.txt
жʾ̨ڣĵ stdout.txt  stderr.txt

-machine machinetypeSetup dosbox to emulate a specific type of machine. Valid choices are:
auto,hercules,cga,tandy,vga.
DOSboxģһ̨͵ĻЧѡΪauto,hercules,cga,tandy,vga

ע⣺һname/command/configfile/languagefileпո񣬽name/command/configfile/languagefile֮

:

dosbox c:\atlantis\atlantis.exe -c "MOUNT D C:\SAVES"
This would mount c:\atlantis as c:\ and run atlantis.exe.c:\atlatisΪc:\atlantis.exe
Before it does that it would first mount C:\SAVES as the D drive.
ϲ֮ǰȻc:\savesΪD
In Windows you can also drag directories/files onto the dosbox executable.
Windowsһdosboxִļҷ



ڲ

DOSbox֧command.comҵ
ǿеģ
MOUNT "Emulated Drive letter" "Real Drive or Directory" 
[-t type] [-aspi] [-ioctl] [-usecd number] [-size drivesize] 
[-label drivelabel]
MOUNT -cd
װͬDOSboxڵһı

"Emulated Drive letter"ģ
The driveletter inside dosbox (eg. C)dosbox.

"Real Drive letter or Directory"ʵļ
The local directory you want to have inside dosbox.Ҫdosboxеı
(Under Win32 usually the same as "Emulated Drive letter".win32һͱģһ
For Example: mount c c:\ )

t type
Type of the mounted directory. Supported are: dir (standard), floppy, cdrom.
ʾõĿ¼֧֣dir׼floppy,cd-rom

-size drivesize
Sets the size of the drive.С 

-label drivelabel ʶ
Sets the name of the drive to "drivelabel". ֵꡱ
Needed on some systems if the cd label isn't read correctly. һЩȷʶCDϵͳҪ
Useful when a program can't find its cdrom һϵͳҵcd-rom ʱʹ

-aspi
Forces to use the aspi layer. ǿʹaspi
Only valid if mounting a cdrom under Windows systems with an ASPI-Layer.
ڵWindowsϵͳһASPIΪcd-romʱЧ

-ioctl 
Forces to use ioctl commands. ǿʹioctl
Only valid if mounting a cdrom under windows which support them (Win2000/XP/NT).
ڵwindows֧ͬ(2k/xp/nt)ʱЧ

-usecd number
Forces to use SDL cdrom support for drive number.ǿʹSDL CDROM֧
Number can be found by -cd. ſ-cdбҵValid on all systems.ϵͳЧ

-cd
Displays all detected cdrom drives and their numbers. Use with -usecd.
ʾм⵽cd-romǵıšusecdһͬʹ

ע: It's possible to mount a local directory as cdrom drive.ܹһΪһcdrom 
Hardware support is then missing.Ӳ֧ʧ

Basically, MOUNT allows you to connect real hardware to DOSBox's "emulated"
PC. So MOUNT C C:\ tells DOSBox to use your real C: drive as drive C: in
DosBox. It also allows you to change the drive's letter identification for
programs that demand specific drive letters.
ϣʵӲDOSboxıģPCϡmountc c:\DOSboxʹ
c̵DOSboxµc̡һΪϵͳҪ̷ı

For example: Touche: Adventures of The Fifth Musketeer must be run on your C:
drive. Using DOSBox and it's mount command, you can trick into thinking it
is on C drive while placing it where you want it. For example, if the game
were in D:\TOUCHE, you can use the command MOUNT C D:\ would allow you to
run Touche from the D drive.
磺һ£͡cСʹDosboxԽ
cƶҪӲȥ磬Ϸd:\toucheʹmount c d:\ 
dTouche

General MOUNT Examples:ͨõ
1. To mount c:\floppy as a floppy :  c:\floppyΪ
mount a c:\floppy -t floppy
2. To mount system cdrom drive E as cdrom drive D in dosbox:ϵͳEΪdosboxD
mount d e:\ -t cdrom
3. To mount system cdrom drive at mountpoint /media/cdrom as cdrom drive D 
in dosbox:û 
mount d /media/cdrom -t cdrom -usecd 0
4. To mount a drive with 870 mb free diskspace (rarely needed! experts only):һ871MеĴ̿ռ(ʹãר)
mount c d:\ -size 4025,127,16513,1700
5. To mount /home/dos/dosgames as drive C in DOSBox:/home/dos/dosgamesӳ䵽dosbox´C
mount c /home/dos/dosgames

MEM
Program to display the amount of free memory.ʾڴ

CONFIG [-writeconf] [-writelang] localfile
Write the current configuration or language settings to file.ǰָдļ
"localfile" is located on the local drive !!! ǰļǵǰʾļ

Example:
To create a configfile in your current directory:㵱ǰĿ¼һָļ
config -writeconf dosbox.conf


LOADFIX [-size] [program] [program-parameters]
LOADFIX -f
Program to "eat up" memory. ռڴ
Useful for old programs which don't expect much memory to be free.
ʹϵЩҪܶڴռĳ
-size 
number of kb to "eat up", default = 64kb
ռõkbĬϣ64kb

-f
frees all previously allocated memory
ͷǰռõڴ

Examples:
1. To start mm2.exe and allocate 64kb memory :mm2.exeռ64kbڴ(ڴռΪĬ)
loadfix mm2
2. To start mm2.exe and allocate 32kb memory :mm2.exeռ32kbڴ
loadfix -32 mm2
3. To free previous allocated memory :ͷռõڴ
loadfix -f

For more information use the /? command line switch with the programs.
ҪϢ/?


=============
Special Keys:
=============

ALT-ENTER Go full screen and back.ȫͻָ
CTRL-F5 Save a screenshot.洢
CTRL-F6 Start/Stop recording sound output to a wave file.ʼ/ֹͣ¼ļ
CTRL-F7 Decrease frameskip.֡
CTRL-F8 Increase frameskip.֡
CTRL-F9 Kill dosbox.dosbox
CTRL-F10 Capture/Release the mouse./ͷ
CTRL-F11 Slow down emulation (Decrease DOSBox Cycles).ģ(dosbox)
CTRL-F12 Speed up emulation (Increase DOSox Cycles).ģ(dosbox)

NOTE: Once you increase your DOSBox cycles beyond your computer's maximum
capacity, it will produce the same effect as slowing down the emulation.
This maximum will vary from computer to computer, there is no standard.
ע⣺dosboxڳأЧͬģһ
ӻ죬ûй̶׼

====================
System requirements:ϵͳҪ
====================
Fast machine. My guess would be pentium-2 400+ to get decent emulation
of games written for an 286 machine.
For protected mode games a 1 Ghz machine is recommended and don't expect
them to run fast though!! Be sure to read the next section on how to speed
it up somewhat.
ĻǱII400ϵĻܹΪ286дϷ
Ƽʹ1GHzϵĻбģʽϷ
ȷһμٵĶ

=========================
To run resource-demanding games: иռϵͳԴϷ
=========================

DOSBox emulates the CPU, the sound and graphic cards, and some other
stuff, all at the same time. You can overclock DOSBox by using CTRL+F12, but
you'll be limited by the power of your actual CPU. You can see how much free
time your true CPU has by looking at the Task Manager in Windows 2000/XP and
the System Monitor in Windows 95/98/ME. Once 100% of your real CPU time is
used there is no further way to speed up DOSBox unless you reduce the load
generated by the non-CPU parts of DOSBox. 
DosboxģCPUԿһЩװжͬʱСʹCTRL+F12ƵdosboxҪʵCPUwindows(2k/xp)ϵͳ(95/98/me)鿴CPUĿʱ䡣
CPU100%ʹʱܼdosbox㽵dosboxCPUγɵĶȡ
So: 
Close every program but DOSBox Overclock DOSBox until 100% of your CPU is used (use the utilities above to check) 
ԣرdosbox ƵdosboxֱCPU100%ʹ(ͨЧʹü)

˴ΪLeona 룩
Since VGA emulation is the most demanding part of DOSBox in terms of actual
CPU usage, we'll start here. Increase the number of frames skipped (in
increments of one) by pressing CRTL+F8. Your CPU usage should decrease.
Go back one step and repeat this until the game runs fast enough for you.
Please note that this is a trade off: you lose in fluidity of video what you
gain in speed 
ΪVGAģϵDOSBOXҪCPUڣΪҪظǰһԴﵽϷٶȡ
һҪٶȵͬʱܻоڵʧ档

You can also try to disable the sound through the setup utility of the game
to further reduce load on your CPU.
ɿͨϷװɸѡȥһЩЧԽCPUĶȡ 





DOSBOXҪͨ༭DOSBOXĿ¼µdosbox.confļDOSBOXá
༭ߣ±
dosbox.confݼ˵

[sdl]

fullscreen=false
# ϷǷȫģʽУΪtrueΪfalse

fulldouble=false
# Ƿȫģʽʹ˫ػ壬õѽ򿪡Իĸ΢΢

fullfixed=ture
# ȫģʽ£Ƿ񽫻ѡfalse졣ȫģʽֻƫƣѡture

fullresolution=800x600
# ȫģʽ£ķֱǶ٣һ˵ֵԽҪԽߣѡ1024x768800x600640x480

output=surface
# ģʽѡĲsurface,overlay,opengl,openglnb,ddraw.ȫģʽ⣬ĳddrawopenglܹѡopengl,openglnb,ddrawȫģʽ»ữ

hwscale=1.00
# ӲţӲ֧ţԴģʽʱձšĬ1.00ϷĬϷֱռ100Сע⣬ִСֱʵģֱʸϷһôеЧҲͲȫˡ

autolock=true
# ԶĬϼɡ

sensitivity=100
# ȣҪĬֵ߼ɣռøϵͳԴ

waitonerror=true
# DOSBOXйгִʱرDOSBOXע⣬ѡ岻΢еص⣬DOSBOXнȲ㿴_bΪ˿塭׼ʱpause break 

priority=higher,normal
# ȼѡlower,normal,higher,highestһԶŷָDOSBOXں̨Сʱѡڶ

mapperfile=mapper.txt
# ԶַӳڲϷĬϰöϷֲṩĹܣĳĳʱϸķμreadme.txt Keymapper һ


[dosbox]

language=
# ԰ʹDOSBOXֶ֧ԡ汾ֻӢģ뿴ģ˺˵

machine=vga
# ʾģʽʹĬϡѡhercules,cga,tandy,vga

captures=capture
# ȺźǸDOSBOXļĿ¼µĿ¼ƣڴŽͼ

memsize=16
# DOSBOXܹʹõڴ棬ʹĬ



[render]

frameskip=0
# ֡ĻʵǲãͿѡɡѡ09Խ֡Խ࣬Ϸʡ

aspect=false
# ظ߿ȣĬfalse1:1ҪͲҪȥġ

scaler=normal2x
# Żѡnone,normal2x,advmame2x,advmame3x,advinterp2x,interp2x,tv2xֱӦ """2ữ""advanceMAMEữ""andvanceMAMEữ","ǿ˫Թ""˫Թ""TVģʽ "ѡޡĻ񻯡ѡTVģʽĻģɨߣģӵЧر𻳾ɵѿԡЧݸ˲ԽЧ 𲻴ϲ趨



[cpu]

core=normal
# ģCPUĵѡsimple,normal,full,dynamicӦףͨȫ̬ҪʹĬϡ

cycles=5000
# ģCPUƵʡһϷ3000ӣDOSɽĵ뵭˲ԣ5000ʱܸƵ뵭ٶ⡣ע⣬Ƶ ݸ˻òͬвͬáãϷʶᳬ100ٺ٣бٳְЧǲܵġ Ҫעǣٶõ̫ͣϷٶõ̫ߣĻޣϷٶҲôٻصɽĻãõ 8000

cycleup=500
cycledown=500
# УһӣһǼ١ÿݼӻcycleʱÿμٵֵٷֱȡֵڵ100ʱ䶯ֵ199֮䣬Ǳ䶯İٷֱȡ


[mixer]

nosound=false
# ģʽĬϹرա㲻򱣳Ĭϡ

rate=22050
# ʣĬ22MHZЧ΢õ㣨Ҫó44100

blocksize=2048
# СԽԽܸͣٵ󡣲Ҳ--ӳ١

prebuffer=10
# 壺ʱٺ룬ĻԿǼӴֵӦģϵͳԴռüӴ




[midi]


mpu401=true
# ǷMPU-401ģ⣬MIDIҪΪtrue

intelligent=true
# ǻ۴ģʽʹĬ

device=default
# ѡMPU-401MIDIѶŵ豸ʹĬϡѡΪ
# default,alsa,oss,win32,coreaudio,noneδϸԡ

config=
# õģҪȥרҵվ迼




[sblaster]


type=sb16
# ѡģsoundblasterͺţnone,sb1,sb2,sbpro1,sbpro2,sb16

base=220
irq=7
dma=1
hdma=5
mixer=true
oplmode=auto
# 6ܷĹؼϷеӦøһɽΪbaseӦϷóinstall.exeеI/O portIRQ,DMAֱһһӦ

oplrate=22050
# ģƵĲʣҲߵ44100ЧĹ۲



[gus]


# gus=true
# rate=22050
# base=240
# irq1=5
# irq2=5
# dma1=3
# dma2=3
# ultradir=C:\ULTRASND

# 8ǹGravis UltrasoundģģɽòرգҪѿԭעͣΪ8ԭעͣ
# gus -- Enable the Gravis Ultrasound emulation.
# base,irq1,irq2,dma1,dma2 -- The IO/IRQ/DMA addresses of the 
#                Gravis Ultrasound. (Same IRQ's and DMA's are OK.)
# rate -- Sample rate of Ultrasound emulation.
# ultradir -- Path to Ultrasound directory.      In this directory
#                 there should be a MIDI directory that contains
#                 the patch files for GUS playback.      Patch sets used
#                 with Timidity should work fine.



[speaker]

# pcspeaker=true
# pcrate=22050
# tandyrate=22050
# disney=true

# 4ɽòرաҪѿԭעͣ£
# pcspeaker -- Enable PC-Speaker emulation.
# pcrate -- Sample rate of the PC-Speaker sound generation.
# tandyrate -- Sample rate of the Tandy 3-Voice generation.
#                  Tandysound emulation is present if machine is set to tandy.
# disney -- Enable Disney Sound Source emulation.




[bios]
# 0.63棨ǰİ汾0.63ﶼûѡ



[dos]

xms=true
ems=false
# ɽУرEMSҪ



[modem]


modem=false
# MODEMģ⣬ϷãҪʹMODEMӣʹ򿪡

comport=2
# ˿ڣʹĬ

listenport=23
# ˿ڣʹĬ



[directserial]


directserial=false
# ֱӵӣҲϷõģҪʹֱӵӣʹ򿪡

comport=1
# DOSBOXеĶ˿ڣʹĬ

realport=COM1
# Ķ˿ڣʵ

defaultbps=1200
# ׼(bps)

parity=N
# żУ飬ѡNEO

bytesize=8
# ÿݰĴСѡ58

stopbit=1
# ͣλ㣬ʹĬϡѡ12



[ipx]

ipx=false
# IPXЭӣϷãҪѡtrue



[autoexec]
# ӵDOSBOXԶصMOUNTDOSBOXרҲӲDOSCOPYCLSȵȡ