Page 1 of 1

bochs and image problem

Posted: Thu Dec 09, 2004 12:00 am
by zerocool
hi!

i want to load an simply assembly programm to an floppy image and then i want to run bochs

but i dont know how?

can anybody help me?

thx zerocool

Re: bochs and image problem

Posted: Thu Dec 09, 2004 12:00 am
by System Halted
goto

http://www.osdever.net/downloads.php

there are lots of neat tidbits and programs overthere

Re: bochs and image problem

Posted: Fri Dec 10, 2004 12:00 am
by jcmatias
for windows :
supose to use a real floppy disk.

0 - Make a script in you boch.exe directory : script.bxrc. this is the bochs config file to run your
image.

1- copy your test.exe program to your floppy disk.
the floppy must be bootable. you can use a
win98 bootable disk or one of row images in
http://www.osdever.net/downloads.php

2- In dosbox goto bochs dir and execute
bochs -q -f script.bxrc

Script file to boot a real floppy disk in your drive A

#minimal sript

# how much memory the emulated machine will have
megs: 8

# filename of ROM images
romimage: file=$BXSHARE/BIOS-bochs-latest, address=0xf0000
vgaromimage: $BXSHARE/VGABIOS-elpin-2.40

# what disk images will be used
floppya: 1_44=a:, status=inserted


# choose the boot disk.
boot: floppy

# default config interface is textconfig.
config_interface: textconfig

display_library: win32

# where do we send log messages?
log: bochsout.txt


# enable key mapping, using US layout as default.
keyboard_mapping: enabled=1, map=$BXSHARE/keymaps/x11-pc-us.map

ips: 500000

Re: bochs and image problem

Posted: Fri Dec 10, 2004 12:00 am
by pepito
You can use PARTCOPY.EXE to create an floppy image and the configure BOCHS to use that image.

You can get a copy of the program PARTCOPY at the John Fine's home page http://my.execpc.com/~geezer/johnfine/.

Try these steps:

1) First you need to write a bootsector and compile it.

1) Then you need to copy your compiled code to a real floppy disk:

partcopy Boot.bin 0 200 -f0 0

2) Then you need to copy all the floppy to a file:

partcopy -f0 0 168000 c:\PathToYourDirectory\a1.44

3) Finally you need to configure BOCHS to use the image just created. Add these lines to the BOCHSSRC configuration file:

floppya: 1_44="C:\PathToYourDirectory\a1.44", status=inserted
boot: floppy

It is very useful to write a SCRIPT that do all this, then you don't need to write the instructions at the DOS prompt each time you want to create a floppy disk image.

Good look!

Re: bochs and image problem

Posted: Sat Dec 11, 2004 12:00 am
by zerocool
is the only way to write a program to an imagefile over a real floppydisk?

i want to write a program direktly into an imagefile.

an example:
file a.img (1.44 MB floppy image)

assemlber program: hello (369 Bytes)

hello into a.img

boot bochs with a.img

is there a tool to do this??

thx zerocool

Re: bochs and image problem

Posted: Sat Dec 11, 2004 12:00 am
by gaf
Hi,
try Virtual Floppy Driver (VFD):
http://chitchat.at.infoseek.co.jp/vmware/vfd.html

It allows you to copy your kernel to the image just as it was a floppy drive.

regards,
gaf