Author Topic: Disc drives  (Read 3021 times)

0 Members and 1 Guest are viewing this topic.

Offline arnoldemu

  • Supporter
  • 6128 Plus
  • *
  • Posts: 5.336
  • Country: gb
    • Unofficial Amstrad WWW Resource
  • Liked: 2281
  • Likes Given: 3478
Disc drives
« on: 15:31, 11 August 09 »
I need to test my disc loader on some different setups.

I am specifically looking for somebody who has a 3.5" disc drive connected which is permanently forced to be ready.. e.g. such as a pc drive modified for cpc.

Also is there anyone who has 3.5" disc drives for both drive A and for drive B?

I am writing some code to detect which drives exist and to detect if they are double sided or not and I need to test this on other setups.
(I am currently using a cpc6128, 3" drive A, and 3.5" drive B which has normal ready).

If you can help, send me a private message or reply to this post.
My games. My Games
My website with coding examples: Unofficial Amstrad WWW Resource

ynot zer0

  • Guest
Re: Disc drives
« Reply #1 on: 22:40, 11 August 09 »
this version of the forum seems to think I don't exist (hence I'm shown as Guest)----
I have a 6128 with a 3.5" disc drive that has a A/B switch
3.5" disc drive that has a A/B switch - click the link and you'll see a photo of the back of the drive.

I'm happy to test any code for you - drop me an email with your app & I'll give it a go (a test spec would also be useful, to know exactly what it is you want to test and then I can record the results more accurately for you)


thanks
ynot.zer0
« Last Edit: 00:42, 12 August 09 by Devilmarkus »

Offline Devilmarkus

  • Vivid source of indefiniteness
  • 6128 Plus
  • ******
  • Posts: 4.035
  • Country: de
  • WebCPC / JavaCPC developer
    • index.php?action=treasury
    • CPC-Live website
  • Liked: 1018
  • Likes Given: 926
Re: Disc drives
« Reply #2 on: 00:41, 12 August 09 »
this version of the forum seems to think I don't exist (hence I'm shown as Guest)

I hope, that you remember, that you need to login as "tonypig777"
Cheers,
Markus
When you put your ear on a hot stove, you can smell how stupid you are ...

Amstrad CPC games in your webbrowser

JavaCPC Desktop Full Release

Offline Ynot.zer0

  • CPC6128
  • ****
  • Posts: 293
  • Country: gb
  • Liked: 23
  • Likes Given: 63
Re: Disc drives
« Reply #3 on: 07:29, 12 August 09 »
(I'll try that posting again - thanks for reminding me who I am!)  ;D

I have a 6128 with a 3.5" disc drive that has a A/B switch
3.5" disc drive that has a A/B switch - click the link and you'll see a photo of the back of the drive.

I'm happy to test any code for you - drop me an email with your app & I'll give it a go (a test spec would also be useful, to know exactly what it is you want to test and then I can record the results more accurately for you)

Offline mr_lou

  • 6128 Plus
  • ******
  • Posts: 3.206
  • Country: dk
    • index.php?action=treasury
    • 8-bit Memoirs - a Blu-ray diskmag-like eBook about the 8-bit era
  • Liked: 1370
  • Likes Given: 2694
Re: Disc drives
« Reply #4 on: 10:07, 12 August 09 »
I am specifically looking for somebody who has a 3.5" disc drive connected which is permanently forced to be ready.. e.g. such as a pc drive modified for cpc.

Also is there anyone who has 3.5" disc drives for both drive A and for drive B?

I have a CPC464 with a 3.5" drive plugged in as my A drive, and a 3" drive as my B drive. The 3.5" drive was taken from a PC and I'm using some special cable I soldered pr instructions at the wiki, so that it works with my 3" controller.
If you mail me a DSK it's easy for me to transfer to a real 3.5" disk for testing. My mail is mr_lou (at) vip dot cybercity dot dk

P.S.: The speakers on the picture are magnetically shielded, so don't worry. ;)

Offline Targhan

  • Supporter
  • 6128 Plus
  • *
  • Posts: 1.402
  • Country: fr
  • Liked: 1331
  • Likes Given: 195
Re: Disc drives
« Reply #5 on: 00:59, 13 August 09 »
Hi,

There's a bug on CPC, it's not possible to detect if the drive is 3" or 3,5". There's indeed a flag in ST3 (bit 3) that *should* allow to do this, but it doesn't work, and gives the same value as the bit 6 (Write Protected).

The only way I found to detect if the drive is double sided or not is to read a sector on head 0, and compare with the same sector on head 1. If they're equal, your drive *may* be single-sided (but if you're working on a double-sided demo/game, it's more reliable since you know the data aren't the same from one side to another).

Targhan/Arkos.
Targhan/Arkos

Arkos Tracker 2.0.1 now released! - Follow the news on Twitter!
Disark - A cross-platform Z80 disassembler/source converter
FDC Tool 1.1 - Read Amsdos files without the system

Imperial Mahjong
Orion Prime

Offline arnoldemu

  • Supporter
  • 6128 Plus
  • *
  • Posts: 5.336
  • Country: gb
    • Unofficial Amstrad WWW Resource
  • Liked: 2281
  • Likes Given: 3478
Re: Disc drives
« Reply #6 on: 11:39, 13 August 09 »
Hi,

There's a bug on CPC, it's not possible to detect if the drive is 3" or 3,5". There's indeed a flag in ST3 (bit 3) that *should* allow to do this, but it doesn't work, and gives the same value as the bit 6 (Write Protected).

The only way I found to detect if the drive is double sided or not is to read a sector on head 0, and compare with the same sector on head 1. If they're equal, your drive *may* be single-sided (but if you're working on a double-sided demo/game, it's more reliable since you know the data aren't the same from one side to another).

Targhan/Arkos.
#
Hi Targhan, thankyou for the tip, but I already know not to trust this bit. It's not a bug, I think more that the cpc 3" drive doesn't support it for cost reasons.

But looking at the intel 8272 docs it says
"Write Protect/Two Side: Senses Write Protect status in Read/Write mode and Two side media in Seek mode."
So I will try it but I don't think I will have any success ;)
So I need to do a seek and then ask for the state.
I will try it but I don't expect I will find any useful result.

I was already planning to similar to what you suggest :) Try a read and then detect it from that.
 
I am working on a test program to check some timings too and then I will send it out for people to try. :)

My games. My Games
My website with coding examples: Unofficial Amstrad WWW Resource