I am going to use the following tools.
1. NASM - the netwide assembler for assembling the code
2. dd - the 'data definition' tool for creating disk images
3. bochs - an x86 emulator
GNU/Linux users may have NASM and dd packaged in the distribution; Download and install Bochs.
Microsoft Windows users could use Cygwin for NASM and dd. Bochs has a windows binary available for download.
Wednesday, September 24, 2008
In the beginning..
In the beginning there was a tutorial...
'A' tutorial!
No!
Quite a lot of them!
But somehow I started with Robbert Haarman, AKA inglorion.
And there was boot sector. :)
Well! well! well! as you know bootsector is the first 512 bytes of the floppy media you boot from.
You can write 512 bytes of x86 assembly language code with 0x55h 0xAAh as the final two magic bytes.
There you have your boot sector. Now carefully place those bytes to a floppy disk and boot your machine.
There you go with writing your first bootsector.
That simple!
'A' tutorial!
No!
Quite a lot of them!
But somehow I started with Robbert Haarman, AKA inglorion.
And there was boot sector. :)
Well! well! well! as you know bootsector is the first 512 bytes of the floppy media you boot from.
You can write 512 bytes of x86 assembly language code with 0x55h 0xAAh as the final two magic bytes.
There you have your boot sector. Now carefully place those bytes to a floppy disk and boot your machine.
There you go with writing your first bootsector.
That simple!
Subscribe to:
Posts (Atom)
