f2 wrote:
0xIvan32 wrote:
Thor, can you explain with more details? Maybe some articles are exist about this topic? I need a quite simple sample of that kind of boot-loader, it would be innaf to understand:) Thank you.
PS: PSS and more S - it's some kind of habit in russian segment of intrenet. We talk so only because we like this form of it:)
Hi 0xIvan32,
You may be happy, I wrote a boot sector for CD-ROM to one of my old OS project. As the boot sector does not serve me in my current project, I will give the source of this boot sector to all those who need them.
Features:
- supports ISO-9660 filesystem ("El Torito");
- no floppy emulation;
- supports multiples burning session.
Limitations:
- supports only Joliet format.
The boot sector is written with the GAS assembler. Those who use NASM or FASM will have to translate it.
I roughly go through the code, it is neatly written. Basically it relies on INT 13h AH=42h: Extended Read Sectors From Drive
http://en.wikipedia.org/wiki/INT_13H#INT_13h_AH.3D42h:_Extended_Read_Sectors_From_Drive to load data from CD.
I think we can also implement our own CD Drive driver. Anyway, if we want to use CD-ROM, we have to implement the CD Drive driver, sooner or later once we entered the Protected Mode.
However, I am not quite sure how BIOS treat the floppy boot sector and CD boot sector differently. Could anyone elabrate the details about it? Thanks.