bochs dos6.22 nasm 2.16

bochs的安装 请看 debian配置Bochs环境开发asm程序

建立硬盘

bximage -q -hd=32 -func=create -sectsize=512 -imgmode=flat main.img
========================================================================
                                bximage
  Disk Image Creation / Conversion / Resize and Commit Tool for Bochs
         $Id: bximage.cc 14091 2021-01-30 17:37:42Z sshwarts $
========================================================================

Creating hard disk image 'main.img' with CHS=65/16/63 (sector size = 512)

The following line should appear in your bochsrc:
  ata0-master: type=disk, path="main.img", mode=flat

修改配置
完整配置如下

# configuration file generated by Bochs
plugin_ctrl: busmouse=false, iodebug=true, gameport=true, speaker=true, voodoo=false, sb16=false, usb_ohci=false, usb_ehci=false, usb_xhci=false, unmapped=true, usb_uhci=false, pcidev=false, serial=true, extfpuirq=true, ne2k=false, pcipnic=false, e1000=false, parallel=true, biosdev=true, es1370=false
config_interface: textconfig
display_library: x
memory: host=32, guest=32
romimage: file="$BXSHARE/BIOS-bochs-latest", address=0x00000000, options=none
vgaromimage: file="$BXSHARE/VGABIOS-lgpl-latest"
boot: cdrom
floppy_bootsig_check: disabled=0
#floppya: type=2_88, 2_88="A.img", status=inserted, write_protected=1
floppya: image="A.img", status=inserted
# no floppyb
ata0: enabled=true, ioaddr1=0x1f0, ioaddr2=0x3f0, irq=14
ata0-master: type=disk, path="main.img", mode=flat
ata0-slave: type=cdrom, path="DOS6.22.iso", status=inserted, model="Generic 1234", biosdetect=auto
ata1: enabled=true, ioaddr1=0x170, ioaddr2=0x370, irq=15
ata1-master: type=none
ata1-slave: type=none
ata2: enabled=false
ata3: enabled=false
optromimage1: file=none
optromimage2: file=none
optromimage3: file=none
optromimage4: file=none
optramimage1: file=none
optramimage2: file=none
optramimage3: file=none
optramimage4: file=none
pci: enabled=1, chipset=i440fx, slot1=none, slot2=none, slot3=none, slot4=none, slot5=none
vga: extension=vbe, update_freq=5, realtime=1, ddc=builtin
cpu: count=1:1:1, ips=4000000, quantum=16, 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="AuthenticAMD", brand_string="AMD Athlon(tm) processor"
cpuid: mmx=true, apic=xapic, simd=sse2, sse4a=false, misaligned_sse=false, sep=true
cpuid: movbe=false, adx=false, aes=false, sha=false, xsave=false, xsaveopt=false, avx_f16c=false
cpuid: avx_fma=false, bmi=0, xop=false, fma4=false, tbm=false, x86_64=true, 1g_pages=false
cpuid: pcid=false, fsgsbase=false, smep=false, smap=false, mwait=true, vmx=1, svm=false
print_timestamps: enabled=0
debugger_log: -
magic_break: enabled=0
port_e9_hack: enabled=0
private_colormap: enabled=0
clock: sync=none, time0=local, rtc_sync=0
# no cmosimage
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=false, toggle=ctrl+mbutton
sound: waveoutdrv=alsa, waveout=none, waveindrv=alsa, wavein=none, midioutdrv=alsa, midiout=none
speaker: enabled=true, mode=sound, volume=15
com1: enabled=true, mode=null
com2: enabled=false
com3: enabled=false
com4: enabled=false
parport1: enabled=true, file=none
parport2: enabled=false

从 CDROM启动

进入DOS命令行, 运行 fdisk 向导,对 硬盘分区, 系统会提示从重启
重启后,对硬盘创建文件系统

format C:/s

将光盘的东西全部复制到C盘

xcopy A:  C:  /s

关闭bochs, 修改配置文件,将从cdrom启动,改成disk启动
再次启动bochs, 进入到硬盘的DOS系统

发表回复

您的电子邮箱地址不会被公开。 必填项已用*标注