Bochs Hardware emulation details

Question about which tools to use, bugs, the best way to implement a function, etc should go here. Don't forget to see if your question is answered in the wiki first! When in doubt post here.
Post Reply
Slasher

Bochs Hardware emulation details

Post by Slasher »

I'm working on improving my Floppy driver,I use to issue multiple READ SECTOR commands to read a track or file. Now, I issued a READ TRACK command to the floppy controller. This works fine on my 2 test computers but Bochs seems not to support this command cause my code that waits for the floppy controller to issue an interrupt to signal the completion of the READ TRACK command never returns.
Does anyone know which Floppy Controller commands are supported in bochs?
Also, where can I find a list of how much hardware emulation in terms of percents or details Bochs has per device?
Thanks
aladdin

Re:Bochs Hardware emulation details

Post by aladdin »

I hade this problem (some commands works with bochs but not with a real PC and some others works with real PC but not with bochs).
And I found the solution by following the official 82077AA Floppy Controller Datasheet, it contains all details and pseudo-algorithmes to get your fdc driver working correctly
here is the link to the document http://www.osdever.net/documents/82077AA_FloppyControllerDatasheet.pdf?the_id=41
:)
Slasher

Re:Bochs Hardware emulation details

Post by Slasher »

Bochs reports READ TRACK floppy controller command as invalid
00006747104e[FDD ] io_write: 0x3f5: invalid floppy command 0x42
Has anyone successfully gotten this command to work in Bochs 2.1?

My floppy driver that uses It works marvelously on 3 real pcs that I use for testing.
ASHLEY4

Re:Bochs Hardware emulation details

Post by ASHLEY4 »

Boch is a emulator, if it works ok on a real pc you tested it on, what is the problem.
Do not go down the road of fixing bad emulators.
If my OS worked on Boch, i would be worried.

\\\\||////
(@@)
ASHLEY4.
Slasher

Re:Bochs Hardware emulation details

Post by Slasher »

My concern is Dont the Commercial operating systems(ie Windows, Linux etc) Use READ TRACK command in their floppy drivers? or do they read sector by sector?
Cause all of them seem to work in Bochs.
Or are they using READ SECTOR command with number of Sectors set to 18?
Post Reply