Schachcomputer.info Community

Schachcomputer.info Community (https://www.schachcomputer.info/forum/index.php)
-   Mess Emu & andere Emulationen / Mess Emu and other Emulations (https://www.schachcomputer.info/forum/forumdisplay.php?f=53)
-   -   MessEmu: Mess Emulator für diverse Schachcomputer ist fertig! (https://www.schachcomputer.info/forum/showthread.php?t=1448)

bataais 25.06.2021 10:58

AW: Mess Emulator für diverse Schachcomputer ist fertig!
 
Noch was seltsames: Im CB-Emu scheint er zu laufen, im MessExtra nicht.

Hartmut 25.06.2021 11:11

AW: Mess Emulator für diverse Schachcomputer ist fertig!
 
Zitieren:

Zitat von bataais (Beitrag 99671)
Habs auch mal ausprobiert, mit eingeschaltetem Debugger, Version vom 12. Juni 2021. Bei den Eröffnungszügen b3, c3 und f3 hängt Mondial II, alle LEDs aus, reagiert nicht mehr, im RAM tut sich aber noch was..

Bei mir hängt auch die ältere Version vom 15.3.2021, jedoch die vom 11.Mai 2020 nicht.

Evtl hilft dir das was, Franz?

Also bei mir tritt das auch an anderer Stelle auf. Auch z.B. in der Spanischen Eröffnung. Es ist auch nicht so dass er sich nach dem Verlassen des Buchs ausschaltet. Manchmal spielt er auch noch ein paar Züge und ist dann irgendwann plötzlich weg. Alles sehr seltsam.

fhub 25.06.2021 12:23

AW: Mess Emulator für diverse Schachcomputer ist fertig!
 
Zitieren:

Zitat von bataais (Beitrag 99675)
Noch was seltsames: Im CB-Emu scheint er zu laufen, im MessExtra nicht.

Also das ist nicht so seltsam, weil der Mondial II in CB-Emu die Version in 'messuix.exe' aufruft, und die ist noch älter (MAME 0.190) - dort hat alles noch funktioniert.

Inzwischen scheint es aber, daß ich eine Lösung durch Vergleichen verschiedener Treiberversionen gefunden habe:
In meiner verwendeten Version vom 13.4.2020 (die letzte bevor 'hap' die großen Änderungen gestartet hat), kommt da in der Enginekonfiguration folgender Befehl vor:
m_maincpu->set_periodic_int(FUNC(mephisto_mondial_state::nmi _line_assert),...)
Ich kenne mich zwar hardware-technisch nicht aus, aber das scheint periodisch einen NMI-Interrupt auszulösen, der in einer anderen Funktion mondial2_input_mux_w durch m_maincpu->set_input_line(M65C02_NMI_LINE, CLEAR_LINE) wieder ausgeschaltet wird.

In hap's neuerer Version (und auch in der ganz alten aus 0.190) wird aber im ensprechenden Befehl nmi_line_pulse anstatt nmi_line_assert verwendet, d.h. der NMI-Interrupt wird von Haus aus gepulst, und der AUS-Schalt-Befehl entfällt dabei.

Und genau das habe ich jetzt auch probiert, also in der Konfiguration folgenden Befehl verwendet:
m_maincpu->set_periodic_int(FUNC(mephisto_mondial_state::nmi _line_pulse),...)
und den Ausschalt-Befehl in der Funktion mondial2_input_mux_w einfach auskommentiert!

Jetzt hängt sich der Mondial II bei diesen Anfangszügen b3, c3 oder f3 nicht mehr auf - längere Partien hab ich noch nicht ausprobiert, aber ich vermute mal, daß das Problem damit gelöst ist.

Wie gesagt habe ich technisch keine Ahnung davon, und ob mein 'Bugfix'(?) tatsächlich korrekt ist, kann nur 'hap' sagen.

Grüße,
Franz

Mark 1 25.06.2021 12:24

AW: Mess Emulator für diverse Schachcomputer ist fertig!
 
Zitieren:

Zitat von bataais (Beitrag 99675)
Noch was seltsames: Im CB-Emu scheint er zu laufen, im MessExtra nicht.

Also wenn ich mich nicht irre ist ja CB-Emu Version 0.175 und MessExtra 0.220. Glaube nicht das es an den Plugins liegt. Aber ich bin kein Profi. Ist nur eine Vermutung.

hap 25.06.2021 12:49

Re: Mess Emulator für diverse Schachcomputer ist fertig!
 
Yeah I suspect it was the NMI. When I did an overhaul to the mephisto drivers a few months ago that must have been one of the things that were fixed. Interrupts were wrong in several drivers. For example, the scratchy beep sound in Mega IV was also caused by wrong interrupt handling.

bataais 25.06.2021 12:56

AW: Mess Emulator für diverse Schachcomputer ist fertig!
 
Also Supermondial A und AB spinnen auch, LEDs bleiben hängen.
Version B geht. Monte Carlo's gehen, Mega IV auch (nur kurz getestet).

fhub 25.06.2021 13:04

AW: Re: Mess Emulator für diverse Schachcomputer ist fertig!
 
Zitieren:

Zitat von hap (Beitrag 99681)
Yeah I suspect it was the NMI. When I did an overhaul to the mephisto drivers a few months ago that must have been one of the things that were fixed. Interrupts were wrong in several drivers. For example, the scratchy beep sound in Mega IV was also caused by wrong interrupt handling.

Ok, I've attached your older driver from 13.4.2020 which I'm still using in MessExtra, the last version before you even splitted mondial and mondial2 into separate drivers.
In your original source I've only made 2 changes, one in line 108 and the other in lines 203/204.

Maybe you could have a look at it and check if these changes are ok?

Since the mondial config is derived from the mondial2 config, I'm not sure if the periodic irq0 interrupt (in mondial) just replaces the nmi interrupt (in mondial2), or if it's additional, i.e. that both are active for the mondial and so also the mondial could be affected by my changes!?

hap 25.06.2021 13:14

Re: Mess Emulator für diverse Schachcomputer ist fertig!
 
Yes, set_periodic_int will override the other one. The NMI change looks correct.

Zitieren:

Zitat von fhub (Beitrag 99683)
In your

This older driver is maybe 10% of my code, it's mainly by Sandro.
The newer one has more of my involvement. (see source code below)

Zitieren:

Zitat von bataais (Beitrag 99682)
Also Supermondial A und AB spinnen auch, LEDs bleiben hängen.
Version B geht. Monte Carlo's gehen, Mega IV auch (nur kurz getestet).

The stuck LEDs problem was fixed when I updated the Mephisto drivers. I also added support for tri-color leds for smondial series (red-green-yellow).

mondial/smondial series:
https://github.com/mamedev/mame/blob...to_mondial.cpp
https://github.com/mamedev/mame/blob...o_mondial2.cpp
https://github.com/mamedev/mame/blob...o_smondial.cpp

fhub 25.06.2021 14:38

AW: Re: Mess Emulator für diverse Schachcomputer ist fertig!
 
Zitieren:

Zitat von hap (Beitrag 99684)
The newer one has more of my involvement. (see source code below)
...
The stuck LEDs problem was fixed when I updated the Mephisto drivers. I also added support for tri-color leds for smondial series (red-green-yellow).

Yes, of course I know all your new driver versions, but you have changed so much, that it was impossible to get them working in MAME 0.220 - and even if, then all corresponding layouts/artworks and even the plugins would have to be rewritten - just too much work.

I've now tried to fix the stuck LEDs for smondial (A and AB), but your new driver is so different, that I was not successful. :(

In the attachment there's the previous driver version (also from 13.4.2020), where smondial was still in mephisto_montec.cpp - is there any easy change I could make there to fix only the stuck LEDs of SMondial A and AB?
(no need for any other of your improvements like tri-color LEDs etc. ...)

hap 25.06.2021 15:02

Re: AW: Re: Mess Emulator für diverse Schachcomputer ist fertig!
 
Zitieren:

Zitat von fhub (Beitrag 99686)
is there any easy change I could make there to fix only the stuck LEDs of SMondial A and AB?
(no need for any other of your improvements like tri-color LEDs etc. ...)

Not easy.

The way the LED outputs were done in the old driver is nonsense from a hardware point of view and needed a complete rewrite.
It needs to use pwm_display_device to get correct leds.


Alle Zeitangaben in WEZ +1. Es ist jetzt 10:19 Uhr.

Powered by vBulletin (Deutsch)
Copyright ©2000 - 2026, Jelsoft Enterprises Ltd.
©Schachcomputer.info