You can do that only following my simple steps:
Compile bootloader.asm with NASM using this code:
nasm -f bin -o bootloader.bin bootloader.asm
Download 'dd for windo*s' (search on Google), and put the program dd.exe
into the directory you saved the bootloader file. Open command prompt and move to directory you saved the bootloader, and type this command:
dd if=bootloader.bin of=bootloader.flp
Download imdisk
(search on Google), and install it. After you install, open command prompt and go to the directory you saved the bootloader. Type this command:
imdisk -a -f bootloader.flp -s 1440k -m B:
Windows will then create a virtual floppy drive with the letter B. Copy your KERNEL file into that B drive.
Open command prompt again and type:
imdisk -D -m B:
Windows will then unmount the drive B and your bootloader.flp
is ready to mount by emulator.
I recommend you QEMU because it is so small and fast program to launch your os file. To run bootloader.flp
with qemu, type this command in the command prompt:
qemu -fda bootloader.flp
If you want to produce the ISO file of your bootloader.flp file, you must have a program named mkisofs
and move the program mkisofs.exe
into the directory you saved the bootloader. Then move your bootloader.flp
file into the folder called cdiso
(make it first). Then open command prompt and type this:
mkisofs -no-emul-boot -boot-load-size 4 -o myos.iso -b bootloader.flp cdiso/
It will then produce ISO file and you can run it on emulator.
If you want to ask me more, you can email me at danasap90 {add} gmail {dot} com