News:

Printed Amstrad Addict magazine announced, check it out here!

Main Menu
avatar_HAL6128

Emulator detection

Started by HAL6128, 21:25, 29 September 15

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Prodatron

Quote from: HAL 6128 on 21:42, 30 September 15
...it was just a thought to shorten things. I'm coding a small "filemanager" for the CPC which should do things in the same way like the Midnight-Commander (show directory entries, copy, move, etc.) for FAT32 Harddiscs attached on Symbiface or X-Mass (...uses the &FD0x ports).

Have been away for 2 weeks, and now I see this  :o


Wow, this is looking pretty cool and promising! :)

If you are supporting existing FAT partitions you don't need the IDE identify command, as you have to read the MBR and boot sector anyway to get all information about the location of the partition and the FAT parameters. The identify command is only needed for own formatting routines and/or own file system implementations like BonnyDOS.
WinApe supports the following bits of the status register (#FD0F):
bit 0 - error
bit 3 - data request
bit 7 - ready
Which is all you need for reading/writing sectors. The others are not required for modern IDE devices anymore (at least for these not older than 15 years ;) ).

GRAPHICAL Z80 MULTITASKING OPERATING SYSTEM

TFM

You are wrong there, bit 6 is required and missing in WinApe! See here:



TFM of FutureSoft
Also visit the CPC and Plus users favorite OS: FutureOS - The Revolution on CPC6128 and 6128Plus

Prodatron

#52
Interesting, I am wrong. That's probably the reason, why the IDE/FAT routines are running fine since 11 years on the CPC and 9 years on the MSX with all kind of *REAL* IDE devices as well  :laugh: (WinApe support came 1,5 years later, it's not related to its emulation at all, btw)

GRAPHICAL Z80 MULTITASKING OPERATING SYSTEM

TFM

Quote from: Prodatron on 00:23, 06 October 15
Interesting, I am wrong. That's probably the reason, why the IDE/FAT routines are running fine since 11 years on the CPC and 9 years on the MSX with all kind of *REAL* IDE devices as well  :laugh: (WinApe support came 1,5 years later, it's not related to its emulation at all, btw)


Oh, I'm sorry. Of course you're smarter than the T13 council... Oh wait.... I guess the CPC is just so slow that this bit doesn't have to be used. But its bad practice - no wonder that you stuff has problems with the X-MASS.  :P :laugh:
TFM of FutureSoft
Also visit the CPC and Plus users favorite OS: FutureOS - The Revolution on CPC6128 and 6128Plus

Prodatron

Oh dear...  :picard:
The X-MASS issue of the SymbOS IDE driver has been fixed about half a year ago and had nothing to do with this redundant status-bit.

GRAPHICAL Z80 MULTITASKING OPERATING SYSTEM

TFM

Glad to hear it, but this bit is not redundant. Good nite!  8)
TFM of FutureSoft
Also visit the CPC and Plus users favorite OS: FutureOS - The Revolution on CPC6128 and 6128Plus

Powered by SMFPacks Menu Editor Mod