New Guy: Building a boot loader :)

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.
Locked
keatonvictor
Posts: 1
Joined: Mon Jun 15, 2009 8:46 pm

New Guy: Building a boot loader :)

Post 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
JohnnyTheDon
Member
Member
Posts: 524
Joined: Sun Nov 09, 2008 2:55 am
Location: Pennsylvania, USA

Re: New Guy: Building a boot loader :)

Post 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.
User avatar
Combuster
Member
Member
Posts: 9301
Joined: Wed Oct 18, 2006 3:45 am
Libera.chat IRC: [com]buster
Location: On the balcony, where I can actually keep 1½m distance
Contact:

Re: New Guy: Building a boot loader :)

Post by Combuster »

Slight correction: Floppy/harddisk emulation is part of the el-torito standard.

Nevertheless, you should really search before posting.
"Certainly avoid yourself. He is a newbie and might not realize it. You'll hate his code deeply a few years down the road." - Sortie
[ My OS ] [ VDisk/SFS ]
Locked