Write to Floppy Help

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.
Post Reply
JoeImp

Write to Floppy Help

Post by JoeImp »

Ok, so ive got a basic bootloader written in asm, and a very small kernel written in C. The kernel has various C files that are combined to form kernel.o, I have no problems there. I end up with a bootloader.bin and a kernel.bin. I use a little program called 'makeboot' to combine the 2 .bin's into a .img, which I run with bochs perfectly. Now, how would I go about writing this .img (or the bootloader.bin and kernel.bin) to an actual floppy for an actual test? Ive seen some examples of how to do it on a linux machine or such, but Im confused as to what to do on a windows machine. Im running windows xp, with nasm and gcc. Any help appreciated.

Joe
Khumba

RE:Write to Floppy Help

Post by Khumba »

You can use RAWrite (http://uranus.it.swin.edu.au/~jn/linux/rawwrite.htm), but if you're copying multiple files to different parts of the floppy, use PartCopy (http://my.execpc.com/~geezer/johnfine/), because RAWrite doesn't always preserve partially written-over sectors.

-[ Khumba ]-
LexX

RE:Write to Floppy Help

Post by LexX »

I like to do everything myself and I've written a little program in Delphi using WinAPI (very simple :)). Just open '//./a:' (how I remember) as stream file and write it.
SystemHalted

RE:Write to Floppy Help

Post by SystemHalted »

Of course the widows API is simple LexX, it was written by retards. :)
Post Reply