Home Page

cpc 6128 - demo

Posted By: Breiztiger

cpc 6128 - demo - 04/12/16 05:44 PM

hi

i've try this demo for cpc 6128 in mess (build this day)

http://www.cpc-power.com/index.php?page=detail&num=9023

after a short while, a black screen

music related ?

thanks in advance
Posted By: Breiztiger

Re: cpc 6128 - demo - 04/16/16 08:07 AM

i'm replying myself ;-)

black screen is gone with last build at 04/16/16

yes !!!
Posted By: Breiztiger

Re: cpc 6128 - demo - 04/16/16 08:12 AM

another bug - demo "points barres" from overlanders

http://www.cpc-power.com/index.php?page=detail&num=12683

first screen is not well centered and with bad color in rasters

crtc related surely
Posted By: mahlemiut

Re: cpc 6128 - demo - 04/16/16 10:16 PM

Anything that fiddles with (I think) CRTC register 3 to try to smooth horizontal scrolling is always offset (check Ghosts and Goblins or Out of this World). I've mentioned it to Judge before, hopefully he remembers. wink
Posted By: Breiztiger

Re: cpc 6128 - demo - 05/29/16 10:10 AM

6128plus bug

http://www.cpc-power.com/index.php?page=detail&num=12700

the green ligne is scramble at both side

not on real 6128plus (like picture on cpc-power)
Posted By: NLS

Re: cpc 6128 - demo - 06/01/16 08:23 AM

CPC6128plus monochrome display is messed in general.
Already reported and achnowledged in mametesters.
Posted By: Breiztiger

Re: cpc 6128 - demo - 06/02/16 07:29 AM

i don't speak about green screen

if you look at the link, it's a color screen
Posted By: NLS

Re: cpc 6128 - demo - 06/02/16 08:05 AM

OK
Posted By: Breiztiger

Re: cpc 6128 - demo - 10/16/16 09:55 AM

hi

another graphics glitch

in imerial mahjong

http://www.cpc-power.com/index.php?page=detail&num=13359

screen are too much right align and EGX mode doesn't work
Posted By: Haze

Re: cpc 6128 - demo - 10/16/16 10:21 AM

interesting technique there, alternating the higher resolution 4 colour mode with the lower resolution 16 colour mode every scanline to give a weird illusion of both colours and resolutions.. for that type of graphics it kinda works.

presumably needs exact timings.
Posted By: Breiztiger

Re: cpc 6128 - demo - 10/16/16 10:55 AM

another probs, is that i can't load no standard dsk like back to the future II

http://www.cpc-power.com/extraZipDownloadPart.php?fiche=344&slot=10&rang=0

is there a file to custom to be capable to read this type of disk ?
Posted By: mahlemiut

Re: cpc 6128 - demo - 10/16/16 07:59 PM

Some protected DSK images won't load, probably needs more work since MAME has to convert the image to flux style data.

You could use the HxC utilities which includes an image converter, and convert the DSK image to MFM. This will also give the bonus of the new image being able to be written to.

As for Imperial Mahjong, the screen being offset to the right happens in certain games that use hardware scrolling (like Ghosts 'n Goblins, or Out of this World). I've mentioned it to Judge before, but it is a rather annoying bug.
Posted By: Breiztiger

Re: cpc 6128 - demo - 10/17/16 09:19 AM

hi

thanks, i'll try that asap

is mame capable to read kryoflux ctraw, Stream files or ipf as i have kryoflux hardware and supercard pro scp files ?

perhaps it's on work if not
Posted By: R. Belmont

Re: cpc 6128 - demo - 10/17/16 12:10 PM

IPF files should load, although AFAIK the loader was done entirely with Amiga IPF files so Amstrad ones might need some images sent to OG.
Posted By: ICEknight

Re: cpc 6128 - demo - 10/19/16 12:43 PM

Originally Posted By mahlemiut
You could use the HxC utilities which includes an image converter, and convert the DSK image to MFM. This will also give the bonus of the new image being able to be written to.
...Isn't writing back to the image file actually a bad thing, though? As in, it destroys its original state?
Posted By: Haze

Re: cpc 6128 - demo - 10/19/16 02:05 PM

Originally Posted By ICEknight
Originally Posted By mahlemiut
You could use the HxC utilities which includes an image converter, and convert the DSK image to MFM. This will also give the bonus of the new image being able to be written to.
...Isn't writing back to the image file actually a bad thing, though? As in, it destroys its original state?


HxC is interesting, but doesn't seem amazingly fleixble when it comes to extracting data.

For example, if I have a copy protected disk, and I *know* the sector sizes on the disk are a lie, the software only allows me to load and view the image using the incorrect sizes, I can't tell it to override logic and show me / extract the full sectors ignoring the sizes.
Posted By: crazyc

Re: cpc 6128 - demo - 10/19/16 02:39 PM

The hxc track viewer is really handy for figuring out the copy protection. I used it while recreating the Tandy 2000 lotus 123 invalid sectors.
Posted By: Breiztiger

Re: cpc 6128 - demo - 10/21/16 05:43 PM

hi

i have convert dsk to mfm with hxc as you tell me

http://www.cpc-power.com/extraZipDownloadPart.php?fiche=344&slot=10&rang=0

mess load ok cat work but when i try run"disc i get only a black screen ?

protection is speedlock with track size 6

does mess couldn't handle this type of format ?
Posted By: R. Belmont

Re: cpc 6128 - demo - 10/21/16 05:53 PM

It's possible there isn't sufficient data to emulate the copy protection. Does it work on any other emulator?
Posted By: Breiztiger

Re: cpc 6128 - demo - 10/21/16 07:56 PM

The DSK Work in all CPC emulator like sugarbox or caprice forever for example
Posted By: Breiztiger

Re: cpc 6128 - demo - 10/27/16 07:09 PM

New test demo game

http://cpcrulez.fr/GamesTest/pinball_dreams.htm

Block after level select (with lots of graphics glitch)
Posted By: Breiztiger

Re: cpc 6128 - demo - 11/06/16 09:18 AM

sorry but ...

can i take the same effect with hlsl like this Amstrad ctm picture ?

https://mega.nz/#!4c5xkCoY!MwwlNQtN0lCvrftrOM1U91P9QNbrg20PS_AcsXz8ZEA

(it's a nikon raw picture)
Posted By: Breiztiger

Re: cpc 6128 - demo - 02/12/17 10:50 AM

hi

i try to use printer like lx800

how can i do that ?

i try mess64 cpc6128f -Centronics lx800

but i only have four led from printer with paper out red and beep

where can i take the result of a printed work ?

thanks in advance
Posted By: R. Belmont

Re: cpc 6128 - demo - 02/12/17 01:18 PM

You need to put the printer on line first (it has a button for it) and then it will accept output. However, output is only to the screen and does not scroll.
Posted By: Breiztiger

Re: cpc 6128 - demo - 04/13/17 05:01 PM

for test playcity with all voice on !!! (mess64 cpc6128f -flop1 teaser.dsk -exp playcity) ;-)

just a release : http://www.cpcwiki.eu/forum/news-events/arkos-new-production-a-little-teaser!/

but graphics glitch and the screen is not centered ;-(
Posted By: Breiztiger

Re: cpc 6128 - demo - 07/16/17 01:27 PM

hi

a fdc bug

with this listing

10 OUT (&FA7E),1:'Motor on
20 FOR i=1 TO 1000:NEXT:'tempo
30 OUT (&7B7F),4
40 OUT (&FB7F),2-peek(&A700)
50 OUT (&FA7E),0:'Motor off
60 status=INP(&FB7F):PRINT status
70 nodisk=status AND 32
80 wrprot=status AND 64
90 IF nodisk=0 THEN PRINT "No disk in drive":END
100 IF wrprot=64 THEN PRINT "disk protected":END

return values on real cpc 6128

122
prot disk
90
no disk
50
ok
Posted By: Breiztiger

Re: cpc 6128 - demo - 07/29/17 02:34 PM

when i try to run a dsk on cpc6128 i have this message

Fatal error: Incorrect layout on track 0 head 0, expected_size=100000, current_size=104144

where can i look at for this error

i think dsk layout are not well discribe because my dsk is good for any other emulators
Posted By: Bavarese

Re: cpc 6128 - demo - 07/29/17 03:50 PM

The track layout does not match the format expected by 'dsk_dsk.cpp' (in src\lib\formats)

I had this error with some marginal disks a friend copied over.

You could upload the DSK file for inspection or try to evaluate the 'disc information block' (tracks, sides, size of track).
disc information block

In my case, there was an unexpected extra track because there were traces of an odd, foreign format.
Posted By: Haze

Re: cpc 6128 - demo - 07/29/17 03:51 PM

a lot of known working CPC disk images don't work with our code, the MAME and will get reject with a fatalerror before even loading. Support for the various copy protection features is incomplete I believe
Posted By: R. Belmont

Re: cpc 6128 - demo - 07/29/17 04:04 PM

Also, the usage is unclear for that BASIC program. What is the drive status on each run: disk in, disk out, formatted disk in, unformatted disk in, etc?
Posted By: crazyc

Re: cpc 6128 - demo - 07/29/17 04:47 PM

I've seen two cases where a dumped image is too large because of invalid sectors wedged into the gaps. They will then work on emulators that aren't picky about track sizes.
Posted By: Haze

Re: cpc 6128 - demo - 07/29/17 04:53 PM

are you sure they're invalid sectors, not there because that's how the format represents copy protected tracks? I think they include multiple copies of weak sectors so that the emulator can read a different copy each time and gets different ones if seeking forward / back the first time (unless i'm thinking of a different format)

I know what was meant to be a simple format was extended to support the most common cpc disk protections at least.
Posted By: Breiztiger

Re: cpc 6128 - demo - 07/29/17 05:18 PM

hi

it's a proper dump that i have make myself with a kryoflux

it's a edsk format not dsk witch is old and not use today with new dump as a make

i have also create a editor for Amstrad dsk as i can say this dsk is good

just it has all gaps for each sector and the track 0 length is 5805 bytes not only 4608 bytes (9x512)

it is not copy protected just full dump with gaps
Posted By: Bavarese

Re: cpc 6128 - demo - 07/30/17 09:12 AM

There is a hard limit of 100.000 bytes i also encountered:

Code
build_pc_track_mfm(track, side, image, 100000, tr.number_of_sector, sects, tr.gap3_length);


If you just sampled more data than the 'dsk_dsk' routine can handle (no copy protection assumed), it should be possible to cut the gaps (automagically or in a disk editor).

Olivier Galibert is the author of the 'dsk_dsk' importer. Kevin Thacker and Barry Rodewald wrote the Amstrad emulation.

You might have luck contacting Olivier Galibert in your own tongue - or just upload the image so folks can have a look.

[EDIT: to increase the limit is not a good idea. Upload to Dropbox or a good free file hoster and post the link here]
Posted By: Breiztiger

Re: cpc 6128 - demo - 07/30/17 10:19 AM

i have try to change 100000 to 200000 but not working

https://1drv.ms/f/s!AsnNM-hItJM6ipUvAfhUtZMoMg2zQQ

Posted By: Bavarese

Re: cpc 6128 - demo - 08/01/17 09:15 AM

The disks you uploaded in the previous post had FDC errors and appear to have a very non-standard track layout.
They also utilise increased track densities to cram more data on a floppy than usual.

You can verify that with 'Disk Image Manager' (which is freely available).

To the right (green) is a PD disk i downloaded for verification, with 40 properly formated tracks.

[img]https://www.dropbox.com/s/nf9vyg8lanozhdt/Non_standard_or_copy_protected_disk.jpg?dl=0[/img]

Are you trying to work with a damaged disk - or import a copy protected disk?

The current importer for *.DSK seems a bit ill prepared for density variations. I am by far no CPC expert, though. smile
Posted By: Breiztiger

Re: cpc 6128 - demo - 08/01/17 05:51 PM

i can confirm that this disk is almost normal

http://www.cpc-power.com/SectorView.php?fiche=1058&slot=10&rang=0 click on map tab

no track density changed

just track 3 is unformat

and protected track is track 4 (sector size 4 but only have 100 bytes length take st1 and st2 number &20 checksum error)

this edsk is a good dump from a working real disk

all cpc emulator like caprice, sugarbox, and other play good with this game (Harry and Harry from ere informatique)

Posted By: Breiztiger

Re: cpc 6128 - demo - 04/02/18 09:18 AM

another new demo from revision 2018 that Don't work on mess

https://cpcrulez.fr/demostestDO_onescreen_colonies-vanity.htm
Posted By: Breiztiger

Re: cpc 6128 - demo - 07/29/18 07:47 AM

hi

i test for another project (MiSTer) this test program on my real cpc 6128

http://www.cpc-power.com/index.php?page=detail&onglet=dumps&num=12883

result: all tests passed.

but not on mess, lots of error
Posted By: Breiztiger

Re: cpc 6128 - demo - 07/29/18 09:21 AM

for crtc bug

for enterlace (reg8=3)

http://www.cpc-power.com/index.php?page=detail&num=8979

http://www.cpc-power.com/index.php?page=detail&num=9029

not well rendered
Posted By: Breiztiger

Re: cpc 6128 - demo - 04/13/19 10:53 AM

hi

z80 test error report bug in that test

http://www.cpc-power.com/index.php?page=detail&onglet=dumps&num=12883

SCF and CCF instructions
Posted By: Edstrom

Re: cpc 6128 - demo - 04/13/19 11:09 AM

I think this a known variant issue according to MAMEtesters: https://mametesters.org/view.php?id=2701 did you request a followup there?
Posted By: R. Belmont

Re: cpc 6128 - demo - 04/13/19 11:16 AM

Yeah, we're emulating the NEC Z80, which in this case has that difference from the Zilog original.
Posted By: Breiztiger

Re: cpc 6128 - demo - 04/13/19 12:13 PM

Sorry it seem to be that issue
Posted By: Haze

Re: cpc 6128 - demo - 04/13/19 12:21 PM

Yeah, we're in C++ land these days tho, so creating a derived type with different behavior is far easier than 99% of what goes into MAME...
Posted By: hap

Re: cpc 6128 - demo - 04/13/19 02:10 PM

TODO notes in z80.cpp: "This Z80 emulator assumes a ZiLOG NMOS model." (not NEC)

and regarding SCF/CCF flags: "However, people from the Speccy scene mention that SCF/CCF X/Y results are inconsistent and may be influenced by I and R registers." - so, is it wise to base NEC Z80 on SCF/CCF X/Y differences?
Posted By: R. Belmont

Re: cpc 6128 - demo - 04/13/19 05:38 PM

The z80.cpp notes are from like 1997. I would believe the newer results from the 2018 test program over them. Also, MAME was arcade-only forever, and arcade games almost always used the NEC D780, so it's not shocking we ended up modeling it instead of Zilog.
Posted By: hap

Re: cpc 6128 - demo - 04/13/19 05:59 PM

Those notes are old yes, more like 2008 or so.
I don't know of other NEC vs Zilog differences, but regarding SCF/CCF X/Y flags we definitely emulate the Zilog.

*edit* according to http://www.cpcwiki.eu/forum/technical-support/z80-defective-tests/ it fails on a real Zilog.
Posted By: Edstrom

Re: cpc 6128 - demo - 04/13/19 06:39 PM

Maybe a lot of arcades just starts working if we implement the NEC variation? :-)
Posted By: R. Belmont

Re: cpc 6128 - demo - 04/13/19 07:12 PM

No known software other than this test program cares about this difference smile
Posted By: Breiztiger

Re: cpc 6128 - demo - 04/13/19 07:25 PM

Why i’m lying ? On a real cpc 6128 the test is all good

I’m french and i may be misunderstood what you say
Posted By: R. Belmont

Re: cpc 6128 - demo - 04/13/19 07:29 PM

On a real 6128 with an NEC or ST CPU the test is all good. On a real 6128 with a genuine Zilog CPU the test fails, just as it does in MAME.
Posted By: hap

Re: cpc 6128 - demo - 04/13/19 07:29 PM

What? no it doesn't mean you were lying.
It just means this test suite is giving different results depending on CPU brand. Does your CPC have a Zilog Z80 or a different one?
Posted By: Breiztiger

Re: cpc 6128 - demo - 04/13/19 07:49 PM

Just test on my 6128 with

ST 28400AB1 Z80ACPU 28848 and Zilog Z8400APS Z80 CPU 8631

All are good in test
Posted By: hap

Re: cpc 6128 - demo - 04/13/19 07:59 PM

Ok, then either that test checks more than X/Y flags, and/or Zilog Z80 differs there per die revision. The guy that tested it on his Zilog and failed the test has a Z840004PSC.
Posted By: Breiztiger

Re: cpc 6128 - demo - 04/14/19 07:16 AM

Just tested with a Zilog Z0840004PSC Z80 CPU 8722

All tests passed
Posted By: hap

Re: cpc 6128 - demo - 04/14/19 08:55 AM

Well that's just weird, why did it fail on one Z80 but not on yours.

Also, related to MAME, we don't emulate the details in the last paragraph:
Quote
Bits 3 and 5 of the F Register
Woody confirmed that bits 3 and 5 of the flags are copied on all BIT instructions on both a Zilog Z80 and an NEC clone (stated on the link above as being "unverified").

Stuart Brady discovered that how bits 3 and 5 of the flags are set after the SCF and CCF instructions actually depends on the variant of Z80 in use. On a Zilog Z80, bits 3 and 5 of the flags were set by ORing their previous values with that of A. On an NEC clone, bit 3 was unaffected, while bit 5 appears to be set by ANDing the previous value with something unknown. Previously, Ian Greenway tested this and found that bits 3 and 5 seemed simply to be copied from A, although it is not known which CPU these tests were run on. For more details, see here, here and a more recent investigation here.

Patrik Rak however later discovered that the way how the flags 5 and 3 are affected after SCF/CCF actually depends on the previous instruction completed. In case of genuine Zilog CPU, if an instruction modifies the flags, the immediately following SCF/CCF does move of bits 5 and 3 from A to F, whereas if an instruction doesn't modify the flags (and after interrupt), the SCF/CCF does OR of bits 5 and 3 from A to F. In case of NEC and other clones, it is similar, except that instead of OR it does AND with some unknown value, making the result unreliable.
Posted By: Breiztiger

Re: cpc 6128 - demo - 04/14/19 05:20 PM

hi

crtc bug this time

10 ' Glagla
20 SPEED INK 100,100:MODE 0:BORDER 0:INK 0,0:INK 1,26,2:OUT &BC00,8:OUT &BD00,1:PRINT:PRINT:PRINT:PRINT:PRINT:PRINT" Si je tremble : C'est de froid.":CALL &BB06

screen must scramble a little
Posted By: R. Belmont

Re: cpc 6128 - demo - 04/14/19 05:31 PM

We are well aware that we don't support CPC advanced raster effects. Please allow time for the carpenters to fix basic things like disk loading before becoming too demanding.
Posted By: Breiztiger

Re: cpc 6128 - demo - 05/26/19 09:35 AM

hi

i think you have problem with fdc 765

http://www.cpc-power.com/index.php?page=detail&num=16166

doesn't success on copy A: to A:
Posted By: Edstrom

Re: cpc 6128 - demo - 05/26/19 10:19 AM

There is a problem with how we handle the 3" floppy interface, I see problems accessing B: for the PCW driver, don't know if it is related but I plan to iron it out some rainy day with a logic analyzer and compare with how MAME handles it. It is related to disk select and the ready signals I suspect
Posted By: Breiztiger

Re: cpc 6128 - demo - 07/13/19 05:54 PM

hi

some work at crtc level i think

http://www.cpc-power.com/index.php?page=detail&num=16466
© 2020 Forums