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.
Posted on 2002-01-30 04:23:50 by Quantum
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.
Posted on 2002-01-30 04:30:21 by mob
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


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.
Posted on 2002-01-31 00:44:24 by eet_1024
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
Posted on 2002-01-31 02:32:40 by Quantum
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.
Posted on 2002-01-31 05:18:33 by dxantos