Schachcomputer.info Community

Zurück   Schachcomputer.info Community > Computerschach / Computer Chess: > Mess Emu & andere Emulationen / Mess Emu and other Emulations


Antwort
 
Themen-Optionen Ansicht

  #4581  
Alt 25.06.2021, 10:58
bataais bataais ist offline
SPARC
 
Registriert seit: 01.10.2013
Beiträge: 238
Abgegebene Danke: 129
Erhielt 309 Danke für 132 Beiträge
Aktivitäten Langlebigkeit
0/20 11/20
Heute Beiträge
0/3 ssssss238
AW: Mess Emulator für diverse Schachcomputer ist fertig!

Noch was seltsames: Im CB-Emu scheint er zu laufen, im MessExtra nicht.
Mit Zitat antworten
  #4582  
Alt 25.06.2021, 11:11
Hartmut Hartmut ist offline
Lebende Foren Legende
 
Registriert seit: 01.04.2010
Ort: Nürnberg
Alter: 60
Land:
Beiträge: 2.174
Abgegebene Danke: 3.218
Erhielt 1.544 Danke für 898 Beiträge
Aktivitäten Langlebigkeit
3/20 14/20
Heute Beiträge
0/3 sssss2174
AW: Mess Emulator für diverse Schachcomputer ist fertig!

 Zitat von bataais Beitrag anzeigen
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.
__________________
Mein Profil beim ICCF (International Correspondence Chess Federation)
https://www.iccf.com/player?id=89948&tab=3
Mit Zitat antworten
  #4583  
Alt 25.06.2021, 12:23
fhub fhub ist offline
Lebende Foren Legende
 
Registriert seit: 19.04.2010
Beiträge: 2.579
Abgegebene Danke: 434
Erhielt 5.699 Danke für 1.311 Beiträge
Aktivitäten Langlebigkeit
8/20 14/20
Heute Beiträge
1/3 sssss2579
AW: Mess Emulator für diverse Schachcomputer ist fertig!

 Zitat von bataais Beitrag anzeigen
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
Mit Zitat antworten
Folgender Benutzer sagt Danke zu fhub für den nützlichen Beitrag:
Mark 1 (25.06.2021)
  #4584  
Alt 25.06.2021, 12:24
Mark 1 Mark 1 ist offline
TASC R30
 
Registriert seit: 27.09.2006
Beiträge: 452
Abgegebene Danke: 642
Erhielt 274 Danke für 148 Beiträge
Aktivitäten Langlebigkeit
4/20 18/20
Heute Beiträge
0/3 ssssss452
AW: Mess Emulator für diverse Schachcomputer ist fertig!

 Zitat von bataais Beitrag anzeigen
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.
Mit Zitat antworten
  #4585  
Alt 25.06.2021, 12:49
hap hap ist offline
TASC R40
 
Registriert seit: 27.07.2019
Beiträge: 508
Abgegebene Danke: 184
Erhielt 1.647 Danke für 325 Beiträge
Aktivitäten Langlebigkeit
2/20 5/20
Heute Beiträge
0/3 ssssss508
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.
Mit Zitat antworten
  #4586  
Alt 25.06.2021, 12:56
bataais bataais ist offline
SPARC
 
Registriert seit: 01.10.2013
Beiträge: 238
Abgegebene Danke: 129
Erhielt 309 Danke für 132 Beiträge
Aktivitäten Langlebigkeit
0/20 11/20
Heute Beiträge
0/3 ssssss238
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).
Mit Zitat antworten
  #4587  
Alt 25.06.2021, 13:04
fhub fhub ist offline
Lebende Foren Legende
 
Registriert seit: 19.04.2010
Beiträge: 2.579
Abgegebene Danke: 434
Erhielt 5.699 Danke für 1.311 Beiträge
Aktivitäten Langlebigkeit
8/20 14/20
Heute Beiträge
1/3 sssss2579
AW: Re: Mess Emulator für diverse Schachcomputer ist fertig!

 Zitat von hap Beitrag anzeigen
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!?

Geändert von fhub (27.06.2021 um 23:04 Uhr)
Mit Zitat antworten
  #4588  
Alt 25.06.2021, 13:14
hap hap ist offline
TASC R40
 
Registriert seit: 27.07.2019
Beiträge: 508
Abgegebene Danke: 184
Erhielt 1.647 Danke für 325 Beiträge
Aktivitäten Langlebigkeit
2/20 5/20
Heute Beiträge
0/3 ssssss508
Re: Mess Emulator für diverse Schachcomputer ist fertig!

Yes, set_periodic_int will override the other one. The NMI change looks correct.

 Zitat von fhub Beitrag anzeigen
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)

 Zitat von bataais Beitrag anzeigen
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

Geändert von hap (25.06.2021 um 13:37 Uhr)
Mit Zitat antworten
Folgender Benutzer sagt Danke zu hap für den nützlichen Beitrag:
kamoj (28.07.2021)
  #4589  
Alt 25.06.2021, 14:38
fhub fhub ist offline
Lebende Foren Legende
 
Registriert seit: 19.04.2010
Beiträge: 2.579
Abgegebene Danke: 434
Erhielt 5.699 Danke für 1.311 Beiträge
Aktivitäten Langlebigkeit
8/20 14/20
Heute Beiträge
1/3 sssss2579
AW: Re: Mess Emulator für diverse Schachcomputer ist fertig!

 Zitat von hap Beitrag anzeigen
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. ...)

Geändert von fhub (27.06.2021 um 23:04 Uhr)
Mit Zitat antworten
  #4590  
Alt 25.06.2021, 15:02
hap hap ist offline
TASC R40
 
Registriert seit: 27.07.2019
Beiträge: 508
Abgegebene Danke: 184
Erhielt 1.647 Danke für 325 Beiträge
Aktivitäten Langlebigkeit
2/20 5/20
Heute Beiträge
0/3 ssssss508
Re: AW: Re: Mess Emulator für diverse Schachcomputer ist fertig!

 Zitat von fhub Beitrag anzeigen
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.
Mit Zitat antworten
Antwort

Themen-Optionen
Ansicht

Forumregeln
Du bist nicht berechtigt, neue Themen zu erstellen.
Du bist nicht berechtigt, auf Beiträge zu antworten.
Du bist nicht berechtigt, Anhänge hochzuladen.
Du bist nicht berechtigt, deine Beiträge zu bearbeiten.

BB code ist An
Smileys sind An.
[IMG] Code ist An.
HTML-Code ist An.

Gehe zu

Ähnliche Themen
Thema Erstellt von Forum Antworten Letzter Beitrag
Info: Mephisto Emulator für den Mac fertig RolandLangfeld Die ganze Welt der Schachcomputer / World of chess computers 3 09.09.2007 22:56


Alle Zeitangaben in WEZ +2. Es ist jetzt 06:29 Uhr.



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