Author Topic: Emulator detection  (Read 5018 times)

0 Members and 1 Guest are viewing this topic.

Offline Prodatron

  • 6128 Plus
  • ******
  • Posts: 833
  • Country: de
  • Back on the Z80
    • index.php?action=treasury
    • SymbOS SYmbiosis Multitasking Based Operating System
  • Liked: 1061
  • Likes Given: 556
Re: Emulator detection
« Reply #50 on: 01:45, 06 October 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

Offline TFM

  • Visit the mysteries of the CPC at www.futureos.de
  • Supporter
  • 6128 Plus
  • *
  • Posts: 9.899
  • Country: aq
  • Space Chicken for FutureOS is free!
    • index.php?action=treasury
    • FutureOS - The revolution on CPC!
  • Liked: 1982
  • Likes Given: 4650
Re: Emulator detection
« Reply #51 on: 01:51, 06 October 15 »
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

Offline Prodatron

  • 6128 Plus
  • ******
  • Posts: 833
  • Country: de
  • Back on the Z80
    • index.php?action=treasury
    • SymbOS SYmbiosis Multitasking Based Operating System
  • Liked: 1061
  • Likes Given: 556
Re: Emulator detection
« Reply #52 on: 02: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)
« Last Edit: 02:26, 06 October 15 by Prodatron »

GRAPHICAL Z80 MULTITASKING OPERATING SYSTEM

Offline TFM

  • Visit the mysteries of the CPC at www.futureos.de
  • Supporter
  • 6128 Plus
  • *
  • Posts: 9.899
  • Country: aq
  • Space Chicken for FutureOS is free!
    • index.php?action=treasury
    • FutureOS - The revolution on CPC!
  • Liked: 1982
  • Likes Given: 4650
Re: Emulator detection
« Reply #53 on: 02:56, 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

Offline Prodatron

  • 6128 Plus
  • ******
  • Posts: 833
  • Country: de
  • Back on the Z80
    • index.php?action=treasury
    • SymbOS SYmbiosis Multitasking Based Operating System
  • Liked: 1061
  • Likes Given: 556
Re: Emulator detection
« Reply #54 on: 03:35, 06 October 15 »
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

Offline TFM

  • Visit the mysteries of the CPC at www.futureos.de
  • Supporter
  • 6128 Plus
  • *
  • Posts: 9.899
  • Country: aq
  • Space Chicken for FutureOS is free!
    • index.php?action=treasury
    • FutureOS - The revolution on CPC!
  • Liked: 1982
  • Likes Given: 4650
Re: Emulator detection
« Reply #55 on: 03:37, 06 October 15 »
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