|
|||||||||||
AW: Re: Mess Emulator für diverse Schachcomputer ist fertig!
Hi 'hap',
thanks to you and Berger for this new engine! I had a problem porting back the Premiere to my version 0.220 with 'memory_share_creator'. I've solved (?) it with a similar method that I've already used for some Saitek engines long time ago: 1) changed m_nvram(*this, "nvram", 0x10000, ENDIANNESS_BIG), to m_nvram(*this, "nvram"), 2) changed memory_share_creator< u16 > m_nvram; to required_device and std::unique_ptr< u16[] > m_nvram_data; 3) changed m_rombank->configure_entries(0, 2, memregion("maincpu")->base(), 0x20000); m_nvrambank->configure_entries(0, 2, m_nvram, 0x8000); to m_rombank->configure_entries(0, 2, memregion("maincpu")->base(), 0x20000); m_nvram_data = make_unique_clear< u16[] >(0x10000); save_pointer(NAME(m_nvram_data), 0x10000); m_nvram->set_base(m_nvram_data.get(), 0x10000); m_nvrambank->configure_entries(0, 2, m_nvram, 0x8000); With these changes the compilation is ok and also the Premiere seems to be working correctly, but to be sure that there are no hidden errors or side-effects, I'm better asking for your 'ok'. I'm not sure about the type 'u16', but I guess it's correct because of BIG endianness? but I guess it's correct because of BIG endianness? And also I'm not sure if the values 0x10000 are correct in the 3 lines with 'm_nvram_data'? Regards, Franz
__________________
Meine Webseite: https://fhub.jimdofree.com/ Geändert von fhub (09.09.2023 um 14:09 Uhr) |
Folgender Benutzer sagt Danke zu fhub für den nützlichen Beitrag: | ||
kamoj (09.09.2023) |
|
|||||||||||
AW: Re: Mess Emulator für diverse Schachcomputer ist fertig!
I guess either 0x10000 is wrong (it creates a 64kB nvram file!), or some other changes must be made. Since this Premiere has both a "nvram" and "nvrambank", it's definitely too difficult for me to solve this problem.
__________________
Meine Webseite: https://fhub.jimdofree.com/ |
Folgender Benutzer sagt Danke zu fhub für den nützlichen Beitrag: | ||
kamoj (09.09.2023) |
|
|||||||||||
Re: Mess Emulator für diverse Schachcomputer ist fertig!
64KB is correct, there is no problem.
No, don't change unique_ptr to u8, NVRAM is 16-bit. |
Folgender Benutzer sagt Danke zu hap für den nützlichen Beitrag: | ||
kamoj (09.09.2023) |
|
|||||||||||
AW: Re: Mess Emulator für diverse Schachcomputer ist fertig!
There's nothing saved in nvram at all (all bytes are always 0xff), and MessUI crashes sometimes when I start the Premiere engine, sometimes when I close the engine. Are all 3 values 0x10000 in my previous posting really correct? Or could it have to do something with "rs232" or "usart" that you've added in your new driver? Maybe these devices didn't work correctly in MAME 0.220?
__________________
Meine Webseite: https://fhub.jimdofree.com/ |
Folgender Benutzer sagt Danke zu fhub für den nützlichen Beitrag: | ||
kamoj (09.09.2023) |
|
|||||||||||
Re: Mess Emulator für diverse Schachcomputer ist fertig!
Elite Premiere should work fine without the USART.
m_nvrambank->configure_entries(0, 2, m_nvram, 0x8000); I noticed a bug. Change to: m_nvrambank->configure_entries(0, 2, m_nvram_data, 0x8000); |
|
||||||||||||
AW: Mess Emulator für diverse Schachcomputer ist fertig!
Hallo Franz,
nur mal zur Info: Die echte Premiere speichert auch nix ... weder der Fidelity Teil, noch der Vancouver ... obwohl sie es laut Handbuch sollen können und sogar eine Speicherbatterie im Gerät ist ... Gruß, Sascha
__________________
This post may not be reproduced without prior written permission. Copyright (c) 1967-2024. All rights reserved to make me feel special. :-) |
Folgender Benutzer sagt Danke zu Mythbuster für den nützlichen Beitrag: | ||
kamoj (10.09.2023) |
|
|||||||||||
AW: Re: Mess Emulator für diverse Schachcomputer ist fertig!
Well, with this change the compiler gives an error
__________________
Meine Webseite: https://fhub.jimdofree.com/ |
Folgender Benutzer sagt Danke zu fhub für den nützlichen Beitrag: | ||
kamoj (10.09.2023) |
|
|||||||||||
Re: Mess Emulator für diverse Schachcomputer ist fertig!
I don't know, try other things, like m_nvram_data.get() or &m_nvram_data.get() or (void*)m_nvram_data, etc.
@Mythbuster are you sure the battery wasn't dead? Or something broke? The PCB has two 32KB CMOS RAM chips, a battery, and a Dallas DS1210. And in MAME, I can see it writing to it. I haven't tried saving whole games. |
|
|||||||||||
AW: Re: Mess Emulator für diverse Schachcomputer ist fertig!
Edit: I've made the same changes long time ago in the saitek_stratos driver, and there it worked with m_nvram_data.get(). Maybe the problem for the Prestige is, that it uses ENDIANNESS_BIG? Thanks, Franz
__________________
Meine Webseite: https://fhub.jimdofree.com/ Geändert von fhub (09.09.2023 um 21:56 Uhr) |
Folgender Benutzer sagt Danke zu fhub für den nützlichen Beitrag: | ||
kamoj (10.09.2023) |
|
|
Ä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 |