Page 1 of 1

New Guy: Building a boot loader :)

Posted: Mon Jun 15, 2009 8:55 pm
by keatonvictor
Hi everyone I have the following code for a boot loader

Code: Select all

; boot.asm
hang:
    jmp hang
 
    times 510-($-$$) db 0 ; 2 bytes less now
    db 0x55
    db 0xAA
and I compile it wil

Code: Select all

nasm boot.asm -f bin -o boot.bin
So i can compile it into a flat binary file. Now I was wondering what I do next? because I want to make an .ISO image out of my operating system (boot loader atm) and then run it with my virtual machine.

All help greatly appreciated!

Kind Regards
Keaton

Re: New Guy: Building a boot loader :)

Posted: Mon Jun 15, 2009 9:06 pm
by JohnnyTheDon
For something that simple, a floppy would be easier (in the VM just use the flat binary file you created as the floppy image). If you really want to make an iso, look at the wiki. You will want to use floppy emulation, not El Torito. Please search it next time.

Re: New Guy: Building a boot loader :)

Posted: Tue Jun 16, 2009 1:45 am
by Combuster
Slight correction: Floppy/harddisk emulation is part of the el-torito standard.

Nevertheless, you should really search before posting.