Question about which tools to use, bugs, the best way to implement a function, etc should go here. Don't forget to see if your question is answered in the wiki first! When in doubt post here.
Nightlover wrote:
Now to my questions:
Is it right to copy the floppy.img to the floppy disk with the windows explorer or do I have to copy the floppy.img to the first sector of the floppy disk with the help of for e.g. partcopy.
Is it necassary to format the floppy disk before putting the floppy.img on it.
normally, you don't need a "real" floppy at all: your floppy.img file will be used by bochs to simulate a floppy on the simulated PC.
if you still want to go through a "real" floppy, you'll need something like rawwrite.exe tool to store your image on the floppy, and not simply saving the .img file as a regular file of a FAT12 floppy ...
@Pype.Clicker:
Thanks for your help. I forgot to read point 6. ::)
6. OK now u r done now u can copy any OS img file into this directory just make sure that the name of img file is
'floppy.img' and then click on bochs.exe to run.
Umm... I've got a question. Forgive me if this is totally stupid, but i'm new here.
What address is video memory. I've heard that is is A0000 , but when i try to write to that address bochs doesn't do anything. The display doesn't change. What am i doing wrong? Thanx in advance.
Now to my questions:
Is it right to copy the floppy.img to the floppy disk with the windows explorer or do I have to copy the floppy.img to the first sector of the floppy disk with the help of for e.g. partcopy.
yeah u need to copy ur bootloader to the first sector of the floppy ..u can do that with partcopy
>partcopy bootloader.bin 0 200 -f0 0
will do this or if u have an img file .. just replace -f0 with img file name
Adeel Mahmood wrote:
yeah u need to copy ur bootloader to the first sector of the floppy ..u can do that with partcopy
>partcopy bootloader.bin 0 200 -f0 0
will do this or if u have an img file .. just replace -f0 with img file name
You don't need to bother using partcopy if your entire image is just one file and you want it to start at sector 0 of the floppy image. Then you can just use that file as the floppy image.
Also, if you need to merge 2 or more files together onto sequential sectors of a floppy starting at 0 (for instance a bootloader at sector 0 followed immediately by your kernel at sector 1) and you don't have partcopy, you can also use "copy /b file1 + file2 + file3 +...+filen floppy.img"
The document is your teacher,remember!!!!!!!!!
Read the entire text ,and you will be a Bochs-expert.
It can go by default,double click "run" in the path "Bochs-2.0.2\dlxlinux".
Good Luck!