Log inRegister an accountBrowse CSDbHelp & documentationFacts & StatisticsThe forumsAvailable RSS-feeds on CSDbSupport CSDb Commodore 64 Scene Database
You are not logged in - nap
CSDb User Forums


Forums > C64 Coding > c128 test help needed to improve c128 emulation
2022-01-06 13:20
blacky

Registered: Sep 2007
Posts: 41
c128 test help needed to improve c128 emulation

Hiya all,

I am in the process of improving the MMU emulation in the x128 of the VICE project in collaboration with the author of the Z64K emulator and I need more test results from real c128 hardware.

People who are able and willing to test, please take the mmuswap-??.prg files from

https://sourceforge.net/p/vice-emu/code/HEAD/tree/testprogs/c12..

When running the tests please make sure you do a hard reset / power cycles between tests.

When reporting the results I only need the test nr and the border color.

Thanks in advance to any-1 able and willing to test.
2022-01-06 18:02
hedning

Registered: Mar 2009
Posts: 4732
If you happen to own a PAL C128DCR, like me, can I still be part of this? Or is it only for plain flat C128 owners?
2022-01-06 18:30
blacky

Registered: Sep 2007
Posts: 41
any kind of c128, the more different kinds the better, and the more results the better.

I appreciate all the help any-1 is able/willing to give.
2022-01-06 18:35
Hypnosis

Registered: Mar 2015
Posts: 36
00 green
01 green
02 green
03 green
04 black
05 green
06 blue
07 green
08 light red
09 green
10 green
11 green
12 green
13 green
14 light red
15 white
16 light red
17 cyan
2022-01-06 18:39
blacky

Registered: Sep 2007
Posts: 41
Thank you Hypnosis and any future testers.

Please stay tuned to this topic since there will be some changes to the tests as we get more results and I might ask for retests.
2022-01-06 19:24
mutetus

Registered: Dec 2020
Posts: 12
Nothing but test failed every time.
2022-01-06 19:34
blacky

Registered: Sep 2007
Posts: 41
for some of these test there will be no passed till I gather more information, so what I am interested in is not so much if it passed or not, but more the border color for each test.
2022-01-06 19:40
mutetus

Registered: Dec 2020
Posts: 12
Oh, so I needed to test all files. My bad, I'm kinda slow. I'll test tomorrow with 128 & 128dcr.
2022-01-06 19:45
blacky

Registered: Sep 2007
Posts: 41
All the mmuswap-*.prg files, yes, thanks in advance.
2022-01-06 19:55
tokra

Registered: Jun 2011
Posts: 9
00 green
01 green
02 green
03 green
04 black
05 green
06 blue
07 green
08 light red
09 green
10 green
11 green
12 green
13 green
14 light red
15 white
16 light red
17 cyan

So, same as Hypnosis. Device is a german PAL C128 flat.
2022-01-06 22:09
blacky

Registered: Sep 2007
Posts: 41
I have updated the tests 08, 14 and 16, for Tokra and Hypnosis, please re-test tests 08, 14 and 16 from the sf site.

For every-1 else please make sure you use the current tests.

Thanks.
2022-01-07 07:04
jcompton

Registered: Feb 2006
Posts: 70
NTSC 128D

00 green
01 green
02 green
03 green
04 black
05 green
06 green
07 green
08 brown
09 green
10 green
11 green
12 green
13 green
14 blue
15 white
16 light red
17 cyan
2022-01-07 07:33
Hypnosis

Registered: Mar 2015
Posts: 36
08: brown
14: blue
16: blue
2022-01-07 09:40
mutetus

Registered: Dec 2020
Posts: 12
Tested with freshly downloaded test progs, 128 PAL flat. Can't set up my DCR at the moment, sorry.

00: GRN
01: GRN
02: GRN
03: GRN
04: BLK
05: GRN
06: GRN
07: GRN
08: BRN
09: GRN
10: GRN
11: GRN
12: GRN
13: GRN
14: BLU
15: WHT
16: BLU
17: CYN
2022-01-07 13:02
tokra

Registered: Jun 2011
Posts: 9
08 brown
14 blue
16 blue
2022-01-07 19:33
jcompton

Registered: Feb 2006
Posts: 70
Also, can you clarify what constitutes a "hard reset"? I power-cycled my 128D each time on that run but if I'm going to make a habit out of this and can use the reset button instead, that might be nice.
2022-01-07 19:50
blacky

Registered: Sep 2007
Posts: 41
during the weekend I will put extra code into the tests that will make sure every test starts from the same initial conditions, and no power cycling will be needed anymore.
2022-01-07 19:52
blacky

Registered: Sep 2007
Posts: 41
Thanks to every-1 who provided results, I have almost everything I needed (information wise), only a few more tests will be coming, I will post here once I have them ready.
2022-01-07 20:47
hedning

Registered: Mar 2009
Posts: 4732
I will fetch my C128DCR now... :) Wanna be part of this.
2022-01-07 21:03
jcompton

Registered: Feb 2006
Posts: 70
(history teaches that there is rarely "enough" data from NTSC for emulation, so:)

NTSC C128 flat

00 green
01 green
02 green
03 green
04 black
05 green
06 green
07 green
08 brown
09 green
10 green
11 green
12 green
13 green
14 blue
15 white
16 blue
17 cyan
2022-01-07 21:32
hedning

Registered: Mar 2009
Posts: 4732
PAL C128DCR, tested with freshly downloaded files:

00 green
01 green
02 green
03 green
04 black
05 green
06 green
07 green
08 brown
09 green
10 green
11 green
12 green
13 green
14 blue
15 white
16 light red
17 cyan
2022-01-08 19:54
blacky

Registered: Sep 2007
Posts: 41
thank you for all the test results.

I have 'fixed' test 16, and added tests 18, 19, 20 and 21.

So testers, please re-test 16, and test 18, 19, 20 and 21.

As before the passed/failed is currently not interesting, only the border colors matter for the results.

Thanx in advance.
2022-01-08 20:03
Hypnosis

Registered: Mar 2015
Posts: 36
Something is wonky over at sourceforge. The page with the tests is gone.
2022-01-08 20:12
blacky

Registered: Sep 2007
Posts: 41
I just did a repository refresh, the page should be available again, please try again.
2022-01-08 22:18
Hypnosis

Registered: Mar 2015
Posts: 36
16 blue
18 white
19 light green
20 black
21 black
2022-01-08 22:55
hedning

Registered: Mar 2009
Posts: 4732
Still my PAL C128DCR (HB1 005865):

16 blue
18 white
19 light green
20 white
21 white
2022-01-10 00:44
jcompton

Registered: Feb 2006
Posts: 70
Same NTSC 128D:

16 - blue
18 - white
19 - light green
20 - white
21 - white

Same NTSC flat 128:

16 - blue
18 - white
19 - light green
20 - white
21 - white

(identical results)
2022-01-10 12:01
tokra

Registered: Jun 2011
Posts: 9
16 blue
18 white
19 light green
20 black
21 black
2022-01-10 15:15
blacky

Registered: Sep 2007
Posts: 41
Thank you all so much for running these tests, they have helped to make x128 and z64k to be more accurate compared to the real hardware.

For almost all of the tests we have an agreement in the results, the only tests we have a disagreement in the results are tests 06, 20 and 21.

These tests check if when both the zero page and stack page are mapped to the same normal ram page where the back translation goes, that normal ram page will show either the zero page or the stack page, not a mixture of both.

For the people who got a 'white' result from tests 20 and 21, the results show that the stack page takes priority.

For the people who got a 'black' result from tests 20 and 21, the results show that the zero page takes priority.

To find out why there is this different I have one last request.

If you can, please find out what revision of the 8722 you have in your c128, sadly there is no way to tell register-wise so you'll need to look at the chip markings, from what I can find it will be either 8722R1 or 8722R2.

I'm hoping the zp/sp priority difference is tied to the revision of the mmu.

Thanks in advance to the testers who are willing to go through the extra trouble.
2022-01-10 17:28
jcompton

Registered: Feb 2006
Posts: 70
The NTSC 128D I've been providing results on is:
8722R2
1788 22

(I'll open the flat if you really need but am not in a great rush to do so)
2022-01-10 17:56
blacky

Registered: Sep 2007
Posts: 41
thank you for the mmu rev jcompton.

I'll wait till more results come in before I ask anything else of you ;)
2022-01-10 19:14
hedning

Registered: Mar 2009
Posts: 4732
My tested PAL C128DCR (HB1 005865) has a MOS 8722R2 4786 22.

And I am sure we love to help. :) This is interesting and fun.
2022-01-10 19:48
Hypnosis

Registered: Mar 2015
Posts: 36
8722R2
4487 22
2022-01-10 20:06
Trurl

Registered: Mar 2002
Posts: 61
Do you still take more results at a later time? I have three c128s here but cannot check right now.
2022-01-10 20:07
chatGPZ

Registered: Dec 2001
Posts: 11386
The more data the better :)
2022-01-10 20:21
zenda

Registered: Nov 2006
Posts: 22
Results from my PAL C128 flat (HB51 42784)

8722R2
4385


00 green
01 green
02 green
03 green
04 black
05 green
06 blue
07 green
08 brown
09 green
10 green
11 green
12 green
13 green
14 blue
15 white
16 blue
17 cyan
18 white
19 green
20 white
21 white


...wondering if I even need to put back the top metal shield?
2022-01-13 03:14
blacky

Registered: Sep 2007
Posts: 41
Thank you all for the test results, we were able to learn a lot more from the results and have improved the emulation of x128 and Z64K.

The last part of this mmu testing adventure will be some z80 related tests, don't worry, you won't have to start cp/m or something, the test programs will switch to the z80, run the test and change the border color to indicate the result.

I will start making these tests on the weekend, since working life got in the way for now.
RefreshSubscribe to this thread:

You need to be logged in to post in the forum.

Search the forum:
Search   for   in  
All times are CET.
Search CSDb
Advanced
Users Online
CyberBrain/NoName
Guests online: 67
Top Demos
1 Next Level  (9.7)
2 13:37  (9.7)
3 Mojo  (9.7)
4 Coma Light 13  (9.6)
5 Edge of Disgrace  (9.6)
6 What Is The Matrix 2  (9.6)
7 The Demo Coder  (9.6)
8 Uncensored  (9.6)
9 Comaland 100%  (9.6)
10 Wonderland XIV  (9.6)
Top onefile Demos
1 Layers  (9.6)
2 No Listen  (9.6)
3 Party Elk 2  (9.6)
4 Cubic Dream  (9.6)
5 Copper Booze  (9.6)
6 Rainbow Connection  (9.5)
7 Dawnfall V1.1  (9.5)
8 Onscreen 5k  (9.5)
9 Morph  (9.5)
10 Libertongo  (9.5)
Top Groups
1 Performers  (9.3)
2 Booze Design  (9.3)
3 Oxyron  (9.3)
4 Triad  (9.3)
5 Censor Design  (9.3)
Top Crackers
1 Mr. Z  (9.9)
2 Antitrack  (9.8)
3 OTD  (9.8)
4 Fungus  (9.8)
5 S!R  (9.8)

Home - Disclaimer
Copyright © No Name 2001-2024
Page generated in: 0.086 sec.