[原]bochs+dos6.22汇编环境

1、下载安装bochs

下载MS-DOS http://files.cnblogs.com/allbymyself/DOS6.22.rar

下载Masm5.0

2、bochs配置

1)安装目录下的bximage生成.img硬盘映像文件

2)配置文件:

# configuration file generated by Bochs
plugin_ctrl: unmapped=1, biosdev=1, speaker=1, extfpuirq=1, parallel=1, serial=1, gameport=1
config_interface: win32config
display_library: win32
memory: host=1024, guest=1024
romimage: file="d:\Program Files\Bochs-2.6.2/BIOS-bochs-latest"
vgaromimage: file="d:\Program Files\Bochs-2.6.2/VGABIOS-lgpl-latest"
boot: disk
floppy_bootsig_check: disabled=0
floppya: type=2_88, 2_88="C:\Documents and Settings\admin\桌面\Masm5.img", status=inserted, write_protected=1
# no floppyb
ata0: enabled=1, ioaddr1=0x1f0, ioaddr2=0x3f0, irq=14
ata0-master: type=disk, path="D:\Program Files\Bochs-2.6.2\windows.img", mode=flat, cylinders=8322, heads=16, spt=63, model="Generic 1234", biosdetect=auto, translation=auto
ata0-slave: type=cdrom, path="C:\Documents and Settings\admin\桌面\DOS6.22.iso", status=inserted, model="Generic 1234", biosdetect=auto
ata1: enabled=1, ioaddr1=0x170, ioaddr2=0x370, irq=15
ata1-master: type=none
ata1-slave: type=none
ata2: enabled=0
ata3: enabled=0
pci: enabled=1, chipset=i440fx
vga: extension=vbe, update_freq=5
cpu: count=1, ips=4000000, model=bx_generic, reset_on_triple_fault=1, cpuid_limit_winnt=0, ignore_bad_msrs=1, mwait_is_nop=0
cpuid: level=6, stepping=3, model=3, family=6, vendor_string="GenuineIntel", brand_string=" Intel(R) Pentium(R) 4 CPU "
cpuid: mmx=1, apic=xapic, sse=sse2, sse4a=0, misaligned_sse=0, sep=1, movbe=0, adx=0
cpuid: aes=0, xsave=0, xsaveopt=0, x86_64=1, 1g_pages=0, pcid=0, fsgsbase=0, smep=0
cpuid: smap=0, mwait=1, vmx=1
print_timestamps: enabled=0
port_e9_hack: enabled=0
private_colormap: enabled=0
clock: sync=none, time0=local, rtc_sync=0
# no cmosimage
# no loader
log: -
logprefix: %t%e%d
debug: action=ignore
info: action=report
error: action=report
panic: action=ask
keyboard: type=mf, serial_delay=250, paste_delay=100000, user_shortcut=none
mouse: type=ps2, enabled=0, toggle=ctrl+mbutton
parport1: enabled=1, file=none
parport2: enabled=0
com1: enabled=1, mode=null, dev=none
com2: enabled=0
com3: enabled=0
com4: enabled=0

(注:将光盘DOS.ISO装载到CD-ROM启动)

安装步骤:

Fdisk格式化硬盘,xcopy A:\*.*  C:\  再重启动Bochs

从软盘拷贝masm5.0到C:\masm

上一篇:linux 守护进程(daemon process)代码-详细注释


下一篇:简单几何(线段相交) POJ 1066 Treasure Hunt