hmm that is indeed strange. Have you checked the afore mentioned floppy issue (the image needs to be exactly 1.44mb)?
By "Virtual floppy drive", I mean a virtual floppy driver software. Basically it creates a virtual 1.44 MB floppy disk on drive A:. Windows will take this as if it was a real floppy disk (Which is why it works fine in Bochs. I have bochs boot from drive A - my floppy drive)
It is also strange that it says you are in an unsupported operating environment. I have only really heard of that issue when it comes to the VirtualServer side of things.
Hm... Unless I did not set it up correctly?
Then again, I got the same warning attempting to run the setup program...
After clicking the warning box "Continue" button, everything seems to work... I can post a pic of it, if you want to see it.
Also, if you think about it, the ReadSectors command that you have, is probably actually trying to read physical floppy sectors. Maybe VPC is not emulating the floppy image correctly and still utilizing the physical floppy drive.
I dont have a physical floppy drive, which is why I am emulating it
![Wink ;)](./images/smilies/icon_wink.gif)
In any case, it seems to be using it fine as it does load my 1st stage bootloader. The 1st bootloader also correctly loads and executes my 2nd stage bootloader through FAT12 filesystem.
...It seems like it does not like the way I load the kernel image though. It does not even get to the jmp kernel instruction.
At the moment, I found what was causing it to output the original message ("Please insert proper boot media") - int 0x18.
Anywhoo, after commenting that instruction out, it seems to freeze though as if there was an infinity loop with ReadSectors :/
I can test the same system in Bochs and it works fine. In Virtual PC, it just halts.
Try to write the floppy image to an actual floppy and then run VPC on the physical drive. maybe this will work.
Its not quite a floppy image.
VFD contains a real floppy driver and installs it with Windows. This means, by using VFD to create a virtual floppy drive, it acts as a real physical drive.
---
I would like to post my ReadSectors routine, however I am currently testing if the problem actually does lie there. Its hard to tell if it is in ReadSectors or my FAT12 code.