hello
I'd like to make a bootable disk and maybe a CD but I don't know how to put a program into a disks boot sector. I have only ever used 32 bit asm can I still use 32 bit asm in a boot sector.
I'd like to make a bootable disk and maybe a CD but I don't know how to put a program into a disks boot sector. I have only ever used 32 bit asm can I still use 32 bit asm in a boot sector.
it's really not that hard to write *simple* bootsektor-code.
go to http://www.nondot.org/sabre/os/articles/ and check it
out for yourself... all examples i Have seen so far are 16bit
ones... you have the possibility to switch to 32bit mode then.
go to http://www.nondot.org/sabre/os/articles/ and check it
out for yourself... all examples i Have seen so far are 16bit
ones... you have the possibility to switch to 32bit mode then.
Here is my lame boot loader -- it was create just to see how difficult it would be. After assembling with FAsm (really the best thing to use for these type of projects) open the binary image (the *.com file) with debug and use
If you desire to use 32b OPs, you'll have to switch to a 32b mode (ie flat, unreal, protected).
Bootable CD's and business cards are a cinch with Nero's Packet Writing software, just make your floppy first.
W 100 0 0 200
; That is write W [address] [drive] [firstsector] [number]
If you desire to use 32b OPs, you'll have to switch to a 32b mode (ie flat, unreal, protected).
Bootable CD's and business cards are a cinch with Nero's Packet Writing software, just make your floppy first.
Is masm able to create com files? I found an option /AT wich the docs said is used when creating com but I still get an object. if not I'll just give fasm a try
you can create a boot sector in masm, but you will need the 16 bit linker.
As an alternative you can use fasm or nasm, its easier that way.
As an alternative you can use fasm or nasm, its easier that way.