[教程]使用dosbox安装、运行Turbo C++ 3.0(tc3)

软件和网站开发以及相关技术探讨
digwtx
帖子: 34
注册时间: 2007-11-13 18:44
来自: 广西-柳州-工学院
联系:

#16

帖子 digwtx » 2007-12-30 12:12

世界发展太快
peigen
帖子: 234
注册时间: 2006-10-12 21:31

#17

帖子 peigen » 2008-01-09 23:49

用dosbox和我老婆玩大富翁3,把她兴奋的不得了,成天说ubuntu什么都能干了

是阿~~~什么都能了,而且比win的效率高很多,很稳定,不操心~~~

dosbox用来追忆童年很不错
Peigen废话
http://peigen.info
digwtx
帖子: 34
注册时间: 2007-11-13 18:44
来自: 广西-柳州-工学院
联系:

#18

帖子 digwtx » 2008-01-10 12:17

东西不是万能的,某个时代的东西,顺应那个时代的需求
就好比说,现在都是WINDOW时代,平常人家有谁还会去用DOS时代的CCED来编辑文稿呢!
以前DOS时代,不乏经典的游戏,而这些游戏只能在DOS平台下运行,在其它平台是运行不了的
评价一个事物,要从历史的观点来看
别他妈的不拿PC当回事儿!
头像
stlxv
论坛版主
帖子: 8275
注册时间: 2006-05-03 0:39
来自: المريخ

#19

帖子 stlxv » 2008-01-13 2:07

digwtx 写了:东西不是万能的,某个时代的东西,顺应那个时代的需求
就好比说,现在都是WINDOW时代,平常人家有谁还会去用DOS时代的CCED来编辑文稿呢!
以前DOS时代,不乏经典的游戏,而这些游戏只能在DOS平台下运行,在其它平台是运行不了的
评价一个事物,要从历史的观点来看
毕竟cced在n年前就死掉了,而且它的替代品早已普及。

而像vim for dos,edit现在还有不少人在用。
PHP是最好的语言!不服来战!
flyinflash
帖子: 2376
注册时间: 2006-09-21 14:28

#20

帖子 flyinflash » 2008-02-18 19:50

ct 写了:这个不是高手的工具,是骚包的玩具. :lol:
shiweifu
帖子: 66
注册时间: 2007-01-28 15:47

#21

帖子 shiweifu » 2008-03-15 11:16

汗。。我们学校的教材是95年的一本BASIC书
编译器用的是GVBASIC

许多语法、概念早已过时多年。。

(我在职高,但愿大学以后可以少落后几年)
头像
yang_hui1986527
帖子: 911
注册时间: 2006-03-04 23:10
来自: 江西高安
联系:

#22

帖子 yang_hui1986527 » 2008-03-15 17:41

不错,至少解决了一个问题,呵呵
微信:sn0wdr1am86
QQ: 3217680847
QQ 群:82695646
网站:https://www.itcoder.tech/
网站:http://www.snowdream.tech/
头像
stlxv
论坛版主
帖子: 8275
注册时间: 2006-05-03 0:39
来自: المريخ

#23

帖子 stlxv » 2008-03-15 21:24

shiweifu 写了:汗。。我们学校的教材是95年的一本BASIC书
编译器用的是GVBASIC

许多语法、概念早已过时多年。。

(我在职高,但愿大学以后可以少落后几年)
想不落后,就靠自己吧。清华北大也在教这些过时多年的技术。
PHP是最好的语言!不服来战!
flyinflash
帖子: 2376
注册时间: 2006-09-21 14:28

#24

帖子 flyinflash » 2008-06-20 1:47

编辑配置文件

代码: 全选

kate .dosboxrc
设置全屏

代码: 全选

fullresolution=original
下加入

代码: 全选

fullfixed=true
fullwidth=1024
fullheight=768
设置鼠标移动速度

代码: 全选

autolock=true
下加入

代码: 全选

sensitivity=200
自动挂载 ~/tmp/dosapp 到 dosbox 下的 C:

代码: 全选

# Lines in this section will be run at startup.
下加入

代码: 全选

mount c ~/tmp/dosapp
C:
cd tc/bin
另,在设置键时,把 “CTRL + F9 关闭 dosbox ”去掉
上次由 flyinflash 在 2008-06-20 1:52,总共编辑 1 次。
flyinflash
帖子: 2376
注册时间: 2006-09-21 14:28

#25

帖子 flyinflash » 2008-06-20 1:48

# This is the configurationfile for DOSBox 0.72.
# Lines starting with a # are commentlines.
# They are used to (briefly) document the effect of each option.

[sdl]
# fullscreen -- Start dosbox directly in fullscreen.
# fulldouble -- Use double buffering in fullscreen.
# fullresolution -- What resolution to use for fullscreen: original or fixed size (e.g. 1024x768).
# windowresolution -- Scale the window to this size IF the output device supports hardware scaling.
# output -- What to use for output: surface,overlay,opengl,openglnb.
# autolock -- Mouse will automatically lock, if you click on the screen.
# sensitiviy -- Mouse sensitivity.
# waitonerror -- Wait before closing the console if dosbox has an error.
# priority -- Priority levels for dosbox: lowest,lower,normal,higher,highest,pause (when not focussed).
# Second entry behind the comma is for when dosbox is not focused/minimized.
# mapperfile -- File used to load/save the key/event mappings from.
# usescancodes -- Avoid usage of symkeys, might not work on all operating systems.

fullscreen=false
fulldouble=false
fullresolution=original
fullfixed=true
fullwidth=1024
fullheight=768
windowresolution=original
output=surface
autolock=true
sensitivity=200
waitonerror=true
priority=higher,normal
mapperfile=mapper.txt
usescancodes=true

[dosbox]
# language -- Select another language file.
# memsize -- Amount of memory DOSBox has in megabytes.
# machine -- The type of machine tries to emulate:hercules,cga,tandy,pcjr,vga.
# captures -- Directory where things like wave,midi,screenshot get captured.

language=
machine=vga
captures=capture
memsize=16

[render]
# frameskip -- How many frames DOSBox skips before drawing one.
# aspect -- Do aspect correction, if your output method doesn't support scaling this can slow things down!.
# scaler -- Scaler used to enlarge/enhance low resolution modes.
# Supported are none,normal2x,normal3x,advmame2x,advmame3x,hq2x,hq3x,
# 2xsai,super2xsai,supereagle,advinterp2x,advinterp3x,
# tv2x,tv3x,rgb2x,rgb3x,scan2x,scan3x.
# If forced is appended (like scaler=hq2x forced), the scaler will be used
# even if the result might not be desired.

frameskip=0
aspect=false
scaler=normal2x

[cpu]
# core -- CPU Core used in emulation: normal,simple,dynamic,auto.
# auto switches from normal to dynamic if appropriate.
# cycles -- Amount of instructions DOSBox tries to emulate each millisecond.
# Setting this value too high results in sound dropouts and lags.
# You can also let DOSBox guess the correct value by setting it to max.
# The default setting (auto) switches to max if appropriate.
# cycleup -- Amount of cycles to increase/decrease with keycombo.
# cycledown Setting it lower than 100 will be a percentage.

core=auto
cycles=auto
cycleup=500
cycledown=20

[mixer]
# nosound -- Enable silent mode, sound is still emulated though.
# rate -- Mixer sample rate, setting any devices higher than this will
# probably lower their sound quality.
# blocksize -- Mixer block size, larger blocks might help sound stuttering
# but sound will also be more lagged.
# prebuffer -- How many milliseconds of data to keep on top of the blocksize.

nosound=false
rate=22050
blocksize=2048
prebuffer=10

[midi]
# mpu401 -- Type of MPU-401 to emulate: none, uart or intelligent.
# device -- Device that will receive the MIDI data from MPU-401.
# This can be default,alsa,oss,win32,coreaudio,none.
# config -- Special configuration options for the device. In Windows put
# the id of the device you want to use. See README for details.

mpu401=intelligent
device=default
config=

[sblaster]
# sbtype -- Type of sblaster to emulate:none,sb1,sb2,sbpro1,sbpro2,sb16.
# sbbase,irq,dma,hdma -- The IO/IRQ/DMA/High DMA address of the soundblaster.
# mixer -- Allow the soundblaster mixer to modify the DOSBox mixer.
# oplmode -- Type of OPL emulation: auto,cms,opl2,dualopl2,opl3.
# On auto the mode is determined by sblaster type.
# All OPL modes are 'Adlib', except for CMS.
# oplrate -- Sample rate of OPL music emulation.

sbtype=sb16
sbbase=220
irq=7
dma=1
hdma=5
mixer=true
oplmode=auto
oplrate=22050

[gus]
# gus -- Enable the Gravis Ultrasound emulation.
# gusbase,irq1,irq2,dma1,dma2 -- The IO/IRQ/DMA addresses of the
# Gravis Ultrasound. (Same IRQ's and DMA's are OK.)
# gusrate -- 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.

gus=true
gusrate=22050
gusbase=240
irq1=5
irq2=5
dma1=3
dma2=3
ultradir=C:\ULTRASND

[speaker]
# pcspeaker -- Enable PC-Speaker emulation.
# pcrate -- Sample rate of the PC-Speaker sound generation.
# tandy -- Enable Tandy Sound System emulation (off,on,auto).
# For auto Tandysound emulation is present only if machine is set to tandy.
# tandyrate -- Sample rate of the Tandy 3-Voice generation.
# disney -- Enable Disney Sound Source emulation. Covox Voice Master and Speech Thing compatible.

pcspeaker=true
pcrate=22050
tandy=auto
tandyrate=22050
disney=true

[joystick]
# joysticktype -- Type of joystick to emulate: auto (default), none,
# 2axis (supports two joysticks,
# 4axis (supports one joystick, first joystick used),
# 4axis_2 (supports one joystick, second joystick used),
# fcs (Thrustmaster), ch (CH Flightstick).
# none disables joystick emulation.
# auto chooses emulation depending on real joystick(s).
# timed -- enable timed intervals for axis. (false is old style behaviour).
# autofire -- continuously fires as long as you keep the button pressed.
# swap34 -- swap the 3rd and the 4th axis. can be useful for certain joysticks.
# buttonwrap -- enable button wrapping at the number of emulated buttons.

joysticktype=auto
timed=true
autofire=false
swap34=false
buttonwrap=true

[serial]
# serial1-4 -- set type of device connected to com port.
# Can be disabled, dummy, modem, nullmodem, directserial.
# Additional parameters must be in the same line in the form of
# parameter:value. Parameter for all types is irq.
# for directserial: realport (required), rxdelay (optional).
# for modem: listenport (optional).
# for nullmodem: server, rxdelay, txdelay, telnet, usedtr,
# transparent, port, inhsocket (all optional).
# Example: serial1=modem listenport:5000

serial1=dummy
serial2=dummy
serial3=disabled
serial4=disabled

[dos]
# xms -- Enable XMS support.
# ems -- Enable EMS support.
# umb -- Enable UMB support.
# keyboardlayout -- Language code of the keyboard layout (or none).

xms=true
ems=true
umb=true
keyboardlayout=none

[ipx]
# ipx -- Enable ipx over UDP/IP emulation.

ipx=false

[autoexec]
# Lines in this section will be run at startup.
mount c ~/tmp/dosapp
C:
cd tc/bin
dynamic0603
帖子: 259
注册时间: 2008-11-14 20:35

Re:

#26

帖子 dynamic0603 » 2009-03-25 20:18

flyinflash 写了:编辑配置文件

代码: 全选

kate .dosboxrc
设置全屏

代码: 全选

fullresolution=original
下加入

代码: 全选

fullfixed=true
fullwidth=1024
fullheight=768
设置鼠标移动速度

代码: 全选

autolock=true
下加入

代码: 全选

sensitivity=200
自动挂载 ~/tmp/dosapp 到 dosbox 下的 C:

代码: 全选

# Lines in this section will be run at startup.
下加入

代码: 全选

mount c ~/tmp/dosapp
C:
cd tc/bin
另,在设置键时,把 “CTRL + F9 关闭 dosbox ”去掉
.dosboxrc放在哪儿?
头像
casual0402
帖子: 116
注册时间: 2008-04-05 14:18
来自: Fujian,China
联系:

Re: [教程]使用dosbox安装、运行Turbo C++ 3.0(tc3)

#27

帖子 casual0402 » 2009-04-10 10:29

收藏了 呵呵
ktcm
帖子: 2
注册时间: 2009-06-09 14:03

Re: [教程]使用dosbox安装、运行Turbo C++ 3.0(tc3)

#28

帖子 ktcm » 2009-06-09 23:46

关于全屏的问题,试了一下,其实只需要将

代码: 全选

fullresolution=original 
后面参数改成分辩率就可以完美实现了哈比如改成

代码: 全选

fullresolution=640x480
当然

代码: 全选

fullscreen=true 
是必需的

至少在我机器上是这样实现的
ktcm
帖子: 2
注册时间: 2009-06-09 14:03

Re: [教程]使用dosbox安装、运行Turbo C++ 3.0(tc3)

#29

帖子 ktcm » 2009-06-09 23:47

:em01
头像
webcreazy
帖子: 13
注册时间: 2010-10-05 16:18

Re: [教程]使用dosbox安装、运行Turbo C++ 3.0(tc3)

#30

帖子 webcreazy » 2012-04-19 10:11

:em11
太好了,前一段时间还用DosBox折腾8086汇编呢
很好用的一个东西
回复