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
bochs and image problem
-
- Posts: 1
- Joined: Wed Dec 08, 2004 12:00 am
- Location: Vancouver Canada BC
Re: bochs and image problem
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
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
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!
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!
Pepito
Re: bochs and image problem
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
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
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
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