Amstrad CPC 6128/664 (NEW)

https://github.com/mist-devel/mist-board/wiki

Moderators: Mug UK, Zorro 2, spiny, Greenious, Moderator Team

Post Reply
DanyPPC
Atari Super Hero
Atari Super Hero
Posts: 899
Joined: Tue Feb 21, 2017 7:02 am

Re: Amstrad CPC 6128/664 (NEW)

Post by DanyPPC »

Red Sunset doesn't show the screen of the game in YPbPr mode, even with filtered sync display option.
slingshot
Atari God
Atari God
Posts: 1841
Joined: Mon Aug 06, 2018 3:05 pm

Re: Amstrad CPC 6128/664 (NEW)

Post by slingshot »

DanyPPC wrote: Sat Jul 04, 2020 4:43 pm Red Sunset doesn't show the screen of the game in YPbPr mode, even with filtered sync display option.
It doesn't even work on one of my VGA monitors. The game uses an obscure 53Hz refresh rate, complain to the authors.
User avatar
rondc
Atari maniac
Atari maniac
Posts: 95
Joined: Tue Apr 30, 2019 9:59 pm
Location: Spain
Contact:

Re: Amstrad CPC 6128/664 (NEW)

Post by rondc »

Thanks Slingshot !
DanyPPC
Atari Super Hero
Atari Super Hero
Posts: 899
Joined: Tue Feb 21, 2017 7:02 am

Re: Amstrad CPC 6128/664 (NEW)

Post by DanyPPC »

breiztiger
Captain Atari
Captain Atari
Posts: 267
Joined: Sun Sep 20, 2009 6:54 am
Location: FRANCE

Re: Amstrad CPC 6128/664 (NEW)

Post by breiztiger »

https://www.cpc-power.com/index.php?pag ... s&num=8746

The Demo (UK) (128K) (2 faces) (1991) (CPM) [Original] [DEMO].zip

with the ruby music loader very slow when load
slingshot
Atari God
Atari God
Posts: 1841
Joined: Mon Aug 06, 2018 3:05 pm

Re: Amstrad CPC 6128/664 (NEW)

Post by slingshot »

breiztiger wrote: Sat Jul 11, 2020 10:28 am https://www.cpc-power.com/index.php?pag ... s&num=8746

The Demo (UK) (128K) (2 faces) (1991) (CPM) [Original] [DEMO].zip

with the ruby music loader very slow when load
Probably the disc rotation simulation is not perfect. Might be need to switch to a byte clock based approach instead of a sector based one. Not sure I'll work on it, for me, it doesn't worth the effort.
breiztiger
Captain Atari
Captain Atari
Posts: 267
Joined: Sun Sep 20, 2009 6:54 am
Location: FRANCE

Re: Amstrad CPC 6128/664 (NEW)

Post by breiztiger »

seem to have another bug perhaps related

disk loading error (originale version)

puffy's saga (scramble screen)
https://www.cpc-power.com/index.php?pag ... l&num=1716
terres et conquerants (scramble screen)
https://www.cpc-power.com/index.php?pag ... l&num=2201
la maraudeur (crash)
https://www.cpc-power.com/index.php?pag ... l&num=1354
prohibition (load but not cash the protection)
https://www.cpc-power.com/index.php?pag ... l&num=1701
bob morane science fiction (black screen)
https://www.cpc-power.com/index.php?page=detail&num=440
hercule II (blue screen)
https://www.cpc-power.com/index.php?pag ... l&num=4179
slingshot
Atari God
Atari God
Posts: 1841
Joined: Mon Aug 06, 2018 3:05 pm

Re: Amstrad CPC 6128/664 (NEW)

Post by slingshot »

I've tried some of these, but they don't even work in WinApe.
For example, Puffy's Saga loader uses sector id FF at track 1, but no such sector. I don't know what should be the behavior of the upd765 in this case (now sector not found, as I would expect).
Is there any emulator with a debugger or source code which work?
breiztiger
Captain Atari
Captain Atari
Posts: 267
Joined: Sun Sep 20, 2009 6:54 am
Location: FRANCE

Re: Amstrad CPC 6128/664 (NEW)

Post by breiztiger »

Last edited by breiztiger on Sun Jul 12, 2020 6:57 am, edited 1 time in total.
slingshot
Atari God
Atari God
Posts: 1841
Joined: Mon Aug 06, 2018 3:05 pm

Re: Amstrad CPC 6128/664 (NEW)

Post by slingshot »

Looks it's usable for debugging. Will check.
ManuFerHi
Atari freak
Atari freak
Posts: 71
Joined: Fri Dec 23, 2016 1:20 am

Re: Amstrad CPC 6128/664 (NEW)

Post by ManuFerHi »

Match day 2 has an error, the menu does not stop moving as if there was a key pressed.
I found this same bug in McLeod's Amstrad core for zx-uno.
slingshot
Atari God
Atari God
Posts: 1841
Joined: Mon Aug 06, 2018 3:05 pm

Re: Amstrad CPC 6128/664 (NEW)

Post by slingshot »

ManuFerHi wrote: Sun Jul 12, 2020 1:26 pm Match day 2 has an error, the menu does not stop moving as if there was a key pressed.
Fixed.
slingshot
Atari God
Atari God
Posts: 1841
Joined: Mon Aug 06, 2018 3:05 pm

Re: Amstrad CPC 6128/664 (NEW)

Post by slingshot »

I've analyzed these:
breiztiger wrote: Sat Jul 11, 2020 4:56 pm puffy's saga (scramble screen)
https://www.cpc-power.com/index.php?pag ... l&num=1716
terres et conquerants (scramble screen)
https://www.cpc-power.com/index.php?pag ... l&num=2201
la maraudeur (crash)
https://www.cpc-power.com/index.php?pag ... l&num=1354
These are using the same protection, I could make the FDC behave the same as in Caprice, but
it resets. Not sure what's missing. Maybe not just FDC related.
Also a strange finding, that 30 sectors/track is not supported by the EDSK file format, as it has only place for 29 sectors. The 30th is just a hack, and its description slips into the next sector's data.
prohibition (load but not cash the protection)
https://www.cpc-power.com/index.php?pag ... l&num=1701
64K version is OK, maybe not FDC related.
Upd.: reads GAP data from track #39, but it's not in the image.
bob morane science fiction (black screen)
https://www.cpc-power.com/index.php?page=detail&num=440
This one works now.
It reads the GAP data from track #36, after sector $CB, which is not in the image file. The emulator synthesizes the CRC and other missing pieces, but I don't want to implement that, as it might be better to create a new image file with this data included.
breiztiger
Captain Atari
Captain Atari
Posts: 267
Joined: Sun Sep 20, 2009 6:54 am
Location: FRANCE

Re: Amstrad CPC 6128/664 (NEW)

Post by breiztiger »

we have dsk with 64 sectors

where do you have read we can only have 29 sectors ? (Track Info Block stock number of sector in a byte)

https://www.cpc-power.com/index.php?pag ... =64sectors

prohibition have gaps in track 39 on each sector
slingshot
Atari God
Atari God
Posts: 1841
Joined: Mon Aug 06, 2018 3:05 pm

Re: Amstrad CPC 6128/664 (NEW)

Post by slingshot »

breiztiger wrote: Sun Jul 19, 2020 10:40 am we have dsk with 64 sectors

where do you have read we can only have 29 sectors ? (Track Info Block stock number of sector in a byte)

https://www.cpc-power.com/index.php?pag ... =64sectors

prohibition have gaps in track 39 on each sector
http://www.cpcwiki.eu/index.php/Format: ... ile_format
Sector information list: 18-xx, where xx=0xff, as sector data starts at 0x100 -> 0xe8 bytes are available for sector info
One sector info block is 8 bytes, 0xe8/8=0x1D (29) <= There's place for 29 sectors in the sector info list

Check the firs sector on the 30 sectors track: (first sector after the track info block - select track 1, sector 0):
https://www.cpc-power.com/SectorData.ph ... =10&rang=1
The 01 00 1D 02 00 00 00 02 sequence is the sector info for the last sector, not the actual data on the disk!

Prohibiiton (select sectors, chek track #39):
Side A doesn't contain the extra GAP data for track #39:
https://www.cpc-power.com/SectorView.ph ... =10&rang=0
(sector size: 512, stored size: 512)

Side B does:
https://www.cpc-power.com/SectorView.ph ... =10&rang=1
(sector size: 512, stored size: 606/905)
Last edited by slingshot on Sun Jul 19, 2020 12:04 pm, edited 1 time in total.
slingshot
Atari God
Atari God
Posts: 1841
Joined: Mon Aug 06, 2018 3:05 pm

Re: Amstrad CPC 6128/664 (NEW)

Post by slingshot »

breiztiger wrote: Sun Jul 19, 2020 10:40 am we have dsk with 64 sectors
I've cheked one 64 sectors image: it extends the trackinfo block to more than 256 bytes, but as this track doesn't contain any sector data (all sectors stored size is 0), it doesn't conflict with the actual sector data (as it doesn't exist). But it still out-of EDSK spec (and the FPGA implementation currently reads only 1 block of trackinfo - extending this for the few out-of-specs image is unnecessary complicates the already complicated enough HDL code).
breiztiger
Captain Atari
Captain Atari
Posts: 267
Joined: Sun Sep 20, 2009 6:54 am
Location: FRANCE

Re: Amstrad CPC 6128/664 (NEW)

Post by breiztiger »

puffy's saga sector 1D track 01.jpg
there are infos on that sector

for info https://simonowen.com/misc/extextdsk.txt
You do not have the required permissions to view the files attached to this post.
slingshot
Atari God
Atari God
Posts: 1841
Joined: Mon Aug 06, 2018 3:05 pm

Re: Amstrad CPC 6128/664 (NEW)

Post by slingshot »

breiztiger wrote: Sun Jul 19, 2020 1:50 pm puffy's saga sector 1D track 01.jpg

there are infos on that sector
That's ok. But check sector 0.
Sector count section - that says what I wrote above. The proposals circumventing the limitation is not implemented in these EDSK files. Luckily the abused sector data is not needed.
Btw, do you read and understand what I actually write? Because if not, I won't bother explaining things.
slingshot
Atari God
Atari God
Posts: 1841
Joined: Mon Aug 06, 2018 3:05 pm

Re: Amstrad CPC 6128/664 (NEW)

Post by slingshot »

breiztiger wrote: Sun Jul 19, 2020 1:50 pm puffy's saga sector 1D track 01.jpg
Strange, when Caprice reads that sector, it starts from the 0x100 offset (the E5's at the start are skipped).
I think it's somewhat related to this non-standard EDSK usage.
Maybe if >29 sectors/track, it automatically expands the trackinfo block with 128 bytes.
What software created this EDSK? It doesn't fit into the documented format at all.

Code: Select all

1614452  [PC=&5211] CMD Command=READ : 66 00 01 00 1D 02 1D 02 01 
1785078  [PC=&51DC] EXEC READ=AC
1785107  [PC=&51DC] EXEC READ=5F (+29)
1785143  [PC=&51DC] EXEC READ=09 (+36)
1785172  [PC=&51DC] EXEC READ=23 (+29)
1785208  [PC=&51DC] EXEC READ=65 (+36)
1785237  [PC=&51DC] EXEC READ=4A (+29)
1785266  [PC=&51DC] EXEC READ=B4 (+29)
1785302  [PC=&51DC] EXEC READ=21 (+36)
1785331  [PC=&51DC] EXEC READ=BA (+29)
.
.
.
breiztiger
Captain Atari
Captain Atari
Posts: 267
Joined: Sun Sep 20, 2009 6:54 am
Location: FRANCE

Re: Amstrad CPC 6128/664 (NEW)

Post by breiztiger »

samdisk 3.8.8
slingshot
Atari God
Atari God
Posts: 1841
Joined: Mon Aug 06, 2018 3:05 pm

Re: Amstrad CPC 6128/664 (NEW)

Post by slingshot »

breiztiger wrote: Sun Jul 19, 2020 3:06 pm samdisk 3.8.8
Finally I could make it work by shifting the sector data start from Trackinfo+0x100 to Trackinfo+0x200.
breiztiger
Captain Atari
Captain Atari
Posts: 267
Joined: Sun Sep 20, 2009 6:54 am
Location: FRANCE

Re: Amstrad CPC 6128/664 (NEW)

Post by breiztiger »

very good !!!

MiSTer should have same bug ...
slingshot
Atari God
Atari God
Posts: 1841
Joined: Mon Aug 06, 2018 3:05 pm

Re: Amstrad CPC 6128/664 (NEW)

Post by slingshot »

Here's a test version with major changes in the FDC. I'm interested in original disk compatibility improvements/regressions. Also in demo loading improvements/stepbacks. E.g. The Demo now loads really fast.

Spoiler: it has Playcity support, too.
You do not have the required permissions to view the files attached to this post.
skywalky
Atariator
Atariator
Posts: 25
Joined: Fri Nov 18, 2016 4:44 pm

Re: Amstrad CPC 6128/664 (NEW)

Post by skywalky »

Is it possible to implement the Dandanator? In the web there is a VHDL file.
http://dandare.es/Proyectos_Dandare/CPC ... _Mini.html

http://www.dandare.es/Descargas_CPC/CPC ... DevDoc.zip
slingshot
Atari God
Atari God
Posts: 1841
Joined: Mon Aug 06, 2018 3:05 pm

Re: Amstrad CPC 6128/664 (NEW)

Post by slingshot »

skywalky wrote: Tue Jul 21, 2020 2:02 pm Is it possible to implement the Dandanator? In the web there is a VHDL file.
http://dandare.es/Proyectos_Dandare/CPC ... _Mini.html

http://www.dandare.es/Descargas_CPC/CPC ... DevDoc.zip
Is there any game which works only with this cartridge? Or what would be the benefit?
As I see, the only thing which you cannot do with the core currently is SNA loading. Every other feature is redundant.
Post Reply

Return to “MiST”