Author Topic: Reading Spectrum +3 disk on Amstrad CPC 6128  (Read 3147 times)

0 Members and 1 Guest are viewing this topic.

Offline Matalog

  • CPC464
  • **
  • Posts: 5
  • Country: gb
  • Liked: 0
  • Likes Given: 5
Reading Spectrum +3 disk on Amstrad CPC 6128
« on: 21:04, 26 February 16 »
Hi Folks,

I have a ZX spectrum +3 disk with a program that I wrote years ago in +3 BASIC.  At least, I hope it still contains this program.
 
 The only computer with a 3" disk drive that I am able to get my hands on is an Amstrad CPC 6128, but it's not really readily available - I could put someone out to get it.
 
 Could anyone please tell me if there is any point in trying to get the Amstrad to read the Spectrum file?
 
 It's probably only about 40 lines of BASIC.  Would I be possible to list the BASIC on the Amstrad from the Spectrum disk? That way I can copy the lines or photograph and type in on another computer?
 
 Would it be possible to copy it to tape with a output tape datacorder attached so that it could be played into a pc emulator and converted or read that way?
 
 Is there any way that you can think of, with a bare CPC 6128, to take data from a Spectrum +3 disk, written in +3 Basic and either view it or transfer it to another media?

I saw Are Amstrad and Spectrum disk formats the same? and there is a .dsk file mentioned there - if I could get the cdt and play it into the Amstrad, what would that allow me to see or do with the data on the disk?  Would I be able to LIST the BASIC?
 
 Thanks for any help,
 
 Kind regards,
 
 Matt.

Offline VincentGR

  • 6128 Plus
  • ******
  • Posts: 1.054
  • Country: gr
    • Parts from the past.
  • Liked: 528
  • Likes Given: 1468
To blit, or not to blit?
Amiga 1200 Black Project

Offline ukmarkh

  • 6128 Plus
  • ******
  • Posts: 1.417
  • Country: england
    • Classic Replay
  • Liked: 309
  • Likes Given: 75
Re: Reading Spectrum +3 disk on Amstrad CPC 6128
« Reply #2 on: 21:27, 26 February 16 »
I heard there was a Speccy emulator for the CPC? Also, the 6128 and Speccy +3 both use CPM, so although you'll be able to cat and list the code, probably even copy, you won't be able to run it.


Sent from my iPhone using Tapatalk

Offline Matalog

  • CPC464
  • **
  • Posts: 5
  • Country: gb
  • Liked: 0
  • Likes Given: 5
Re: Reading Spectrum +3 disk on Amstrad CPC 6128
« Reply #3 on: 21:40, 26 February 16 »
A Spectrum emulator that runs on CPC would be perfect, google isn't returning much on the subject though.

A couple of other people said that I wouldn't be able to list the basic it because of the different versions ukmarkh, i could possibly list the catalog of the directory.

Kind regards,


Matt.

Offline arnoldemu

  • Supporter
  • 6128 Plus
  • *
  • Posts: 5.332
  • Country: gb
    • Unofficial Amstrad WWW Resource
  • Liked: 2251
  • Likes Given: 3477
Re: Reading Spectrum +3 disk on Amstrad CPC 6128
« Reply #4 on: 21:41, 26 February 16 »
Hi Mat,

I got your PM. I'll reply here.

The +3 disc can be read on the CPC with some pokes. I will find them out.

You will be able to catalogue the disc and see the files.

The files have a different header than the CPC expects, so you could load them but it'll probably respond with "direct command found". I can give you some code to read them into memory.

The CPC can't list them directly because the BASIC is different but I did write a program on CPC to list 48K Spectrum BASIC. I believe +3 BASIC will be slightly different so it may or may not work.

So the problem is how to get this to the CPC. You mentioned a tape lead.

Can you do this:
1. put the files into a cdt/tzx
2. use playtzx to play this from the PC into the CPC?

If you can this makes it all so much easier.

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

Offline ZbyniuR

  • 464 Plus
  • *****
  • Posts: 312
  • Country: pl
  • 6128 A1230 PSX Win7
    • Jedyne polskie forum o CPC. :)
  • Liked: 321
  • Likes Given: 142
Re: Reading Spectrum +3 disk on Amstrad CPC 6128
« Reply #5 on: 23:46, 26 February 16 »
Standard ZX+3 disk look like CPC DATA but 2 tracks more. CPC can read this and Copy files from ZX+3 without problems, but heads in files are different so ZX BIN and BAS files on CPC are seen as ASCII files. Tokens in Basic are not the same. So CPC can list this as HEX in any disk editor but hard to recognise Basic commands.  More easy is copy this file to SD cart (in floppy emulator) after convert HFE to DSK in PC and put this to ZX emulator. :)
TREK is better than WARS.

Offline Munchausen

  • 6128 Plus
  • ******
  • Posts: 774
  • Country: gb
  • Liked: 211
  • Likes Given: 215
Re: Reading Spectrum +3 disk on Amstrad CPC 6128
« Reply #6 on: 00:13, 27 February 16 »
Isn't the answer in the thread linked by @VincentGR ? You can plug a 3.5" drive into the CPC and just copy the whole spectrum disk to 3.5" using discology. Then you can image the 3.5" disk in a PC and load it in an emulator.

Alternatively send the disk to someone with a +3 and the means to copy the files off (3.5" drive, HxC, mass storage of some form)...
« Last Edit: 01:13, 27 February 16 by Munchausen »

Offline FloppySoftware

  • CPC6128
  • ****
  • Posts: 243
  • Country: es
  • The best team: Amstrad PCW, CP/M, and the Z80 cpu.
    • Floppy Software
  • Liked: 234
  • Likes Given: 171
Re: Reading Spectrum +3 disk on Amstrad CPC 6128
« Reply #7 on: 00:18, 27 February 16 »
IIRC +3 has the same disk format as the PCW.

Edit: CP/M information archive : disc formats
« Last Edit: 00:22, 27 February 16 by FloppySoftware »
floppysoftware.es < NEW URL!!!
cpm-connections.blogspot.com.es

Offline arnoldemu

  • Supporter
  • 6128 Plus
  • *
  • Posts: 5.332
  • Country: gb
    • Unofficial Amstrad WWW Resource
  • Liked: 2251
  • Likes Given: 3477
Re: Reading Spectrum +3 disk on Amstrad CPC 6128
« Reply #8 on: 09:45, 27 February 16 »
On CPC6128 enter this code:
Code: [Select]
10 REM Initialises XPDB for +3 DOS
20 REM (Spectrum +3 format discs)
30 XPDB=PEEK(&BE42)+PEEK(&BE43)*256
40 FOR i=0 TO 25:READ D:POKE XPDB+i,D:NEXT 
50 END:DATA &24,0,3,7,0,&AE,0,63,0,&C0,&00,16,00,1,0,1,9,42,82,&E5,2,4,0,&FF,&FF
Now you can view the Spectrum files.

EDIT: The code gives an error but still works. I think in line 40 it needs to be FOR i=0 to 24:
« Last Edit: 09:49, 27 February 16 by arnoldemu »
My games. My Games
My website with coding examples: Unofficial Amstrad WWW Resource

Offline Kris

  • 6128 Plus
  • ******
  • Posts: 553
  • Country: fr
  • Team Impact
  • Liked: 220
  • Likes Given: 815
Re: Reading Spectrum +3 disk on Amstrad CPC 6128
« Reply #9 on: 11:20, 27 February 16 »
Small and useful program ! Thank you Arnoldemu ;)




Offline arnoldemu

  • Supporter
  • 6128 Plus
  • *
  • Posts: 5.332
  • Country: gb
    • Unofficial Amstrad WWW Resource
  • Liked: 2251
  • Likes Given: 3477
Re: Reading Spectrum +3 disk on Amstrad CPC 6128
« Reply #10 on: 11:53, 27 February 16 »
I will follow up this thread soon with code to list a spectrum+3 basic program from the CPC. I definitely have one that lists 48K BASIC on the CPC. I wrote it a few years ago.

My original basic code used UTOPIA to load the file into memory.
My games. My Games
My website with coding examples: Unofficial Amstrad WWW Resource

Offline Matalog

  • CPC464
  • **
  • Posts: 5
  • Country: gb
  • Liked: 0
  • Likes Given: 5
Re: Reading Spectrum +3 disk on Amstrad CPC 6128
« Reply #11 on: 16:28, 27 February 16 »
 Thanks for the replies.  I'm slowly getting a plan together for when I get the 6128, but I may only have 30 mins with it so I want to be ready when I get to it.
 
 I have an old 3.5" floppy drive from around the time of the BBC Micro - thanks for pointing that out Munchausen. I may be able to connect that to the back of the 6128, but I have been getting different results on what connections are on the back of the 6128 for drive B, in some photos it isa Centronics port and in some photos it is an edge connector, were there different versions?  I have a cable that fits my drive and goes to an edge connector socket. Will I have to short 2 pins on the cable? 

Thanks for that code arnoldemu, so now I should definitely be able to see the file, and hopefully be able to copy it to a 3.5" disk.  Is there a copy disk command on Amstrad?  If you find that code that lists 48K BASIC on the CPC, I would be grateful for it, I think it could save me some time by taking photos of the program if I can get it listed.

Will I have to format the 3.5" disc for Amstrad to get the 6128 to write to it?  Does anyone know how I would then get the Spectrum software off the Amstrad disk on a windows PC?
Thanks again,


Matt.













 

Offline Executioner

  • Supporter
  • 6128 Plus
  • *
  • Posts: 783
  • Country: au
  • WinAPE Developer
    • WinAPE
  • Liked: 390
  • Likes Given: 60
Re: Reading Spectrum +3 disk on Amstrad CPC 6128
« Reply #12 on: 23:25, 27 February 16 »
IIRC +3 has the same disk format as the PCW.

Edit: CP/M information archive : disc formats

You should be able to enable PCW format in ParaDOS 1.2 if that's the case.

Offline Matalog

  • CPC464
  • **
  • Posts: 5
  • Country: gb
  • Liked: 0
  • Likes Given: 5
Re: Reading Spectrum +3 disk on Amstrad CPC 6128
« Reply #13 on: 00:33, 10 March 16 »
I'll be getting to use the Amstrad in a day or 2.

I found out the 6128 has an edge connector plug, so my cable will fit it.  Does anyone know if I will have to short 2 pins and if I don't will that cause problems? Pins 33 and 34 like it describes here http://www.cpcwiki.eu/index.php/Guide_on_how_to_connect_a_3.5

arnoldemu, did you ever happen to find the code for reading Spectrum BASIC on Amstrad?  That would be the best and easiest way for me to get the program off the computer - given my lack of knowledge of Amstrad systems.

Thanks again, for any further help,

Matt.

Offline Munchausen

  • 6128 Plus
  • ******
  • Posts: 774
  • Country: gb
  • Liked: 211
  • Likes Given: 215
Re: Reading Spectrum +3 disk on Amstrad CPC 6128
« Reply #14 on: 01:11, 10 March 16 »
I'll be getting to use the Amstrad in a day or 2.

I found out the 6128 has an edge connector plug, so my cable will fit it.  Does anyone know if I will have to short 2 pins and if I don't will that cause problems? Pins 33 and 34 like it describes here http://www.cpcwiki.eu/index.php/Guide_on_how_to_connect_a_3.5

arnoldemu, did you ever happen to find the code for reading Spectrum BASIC on Amstrad?  That would be the best and easiest way for me to get the program off the computer - given my lack of knowledge of Amstrad systems.

Thanks again, for any further help,

Matt.

I have always needed to connect these, yes. But as the guide says, it's easy, you can even use a paperclip.

Offline Matalog

  • CPC464
  • **
  • Posts: 5
  • Country: gb
  • Liked: 0
  • Likes Given: 5
Re: Reading Spectrum +3 disk on Amstrad CPC 6128
« Reply #15 on: 18:29, 11 March 16 »
In a fortunate turn of events, 1 day before I got my hands on the Amstrad, I found a +3 on gumtree for £40.  I changed the belt and it's working.  I got half of the program I was looking for - I can't read the other side of the disk where the graphics part may have been or the whole.

Thanks for all the help guys!!

Matt.

Offline arnoldemu

  • Supporter
  • 6128 Plus
  • *
  • Posts: 5.332
  • Country: gb
    • Unofficial Amstrad WWW Resource
  • Liked: 2251
  • Likes Given: 3477
Re: Reading Spectrum +3 disk on Amstrad CPC 6128
« Reply #16 on: 09:41, 12 March 16 »
i did find my spectrum basic listing program on cpc. But i couldnt make it load and list larger basic files reliably so that is why i didnt post it.
My games. My Games
My website with coding examples: Unofficial Amstrad WWW Resource

Offline Fessor

  • CPC6128
  • ****
  • Posts: 191
  • Country: de
  • Liked: 158
  • Likes Given: 40
Re: Reading Spectrum +3 disk on Amstrad CPC 6128
« Reply #17 on: 09:54, 12 March 16 »
What about this?
CPCRULEZ &gt; APPLICATIONS &gt; UTILITAIRES RSX/LIGNE DE COMMANDE &gt; ZX Spectrum
CPCRULEZ > APPLICATIONS > UTILITAIRES RSX/LIGNE DE COMMANDE > ZX Spectrum