[ZX Spectrum Core] New Update

https://github.com/mist-devel/mist-board/wiki

Moderators: Mug UK, Zorro 2, Greenious, spiny, Moderator Team

Sorgelig
Ultimate Atarian
Ultimate Atarian
Posts: 5106
Joined: Mon Dec 14, 2015 10:51 am
Location: Russia/Taiwan

Re: [ZX Spectrum Core] New Update

Postby Sorgelig » Fri Aug 24, 2018 10:07 pm

Z80 format is basically the same as SNA format - it's snapshot of memory. This is the worst option to keep the game collection.

squid4
Atari maniac
Atari maniac
Posts: 88
Joined: Tue Oct 25, 2016 8:12 pm

Re: [ZX Spectrum Core] New Update

Postby squid4 » Wed Sep 19, 2018 6:34 pm

I was hoping to add "Recreated ZX Spectrum Keyboard" support to this core but I think the USB keyboard support is in the MiST firmware that would need changing not the core itself. This keyboard, in "Game layer" mode replicates the ZX keyboard exactly, like Symbol Shift, Caps Shift but in Qwerty mode acts just like any normal keyboard but with special key combinations to get things like function keys, control etc. so Symbol/Caps Shift don't work in the core.

It sends a down character and up character for each key in "Game layer" as documented in http://sinclair.recreatedzxspectrum.com/downloads/recreated_sinclair_zx_spectrum_developer_guide_placeholder_ZX%20Keyboard%20Technical%20Document_a15_v1_1a.pdf. I can't see a way to do this in the core as the firmware supplies the PS2 keycodes, not keyup/keydown codes, so would need access at a lower level. The latest Fuse emulator supports this keyboard.

seastalker
Captain Atari
Captain Atari
Posts: 274
Joined: Sun May 15, 2016 3:44 pm

Re: [ZX Spectrum Core] New Update

Postby seastalker » Thu Sep 20, 2018 8:13 pm

I use my Recreated ZX Spectrum Keyboard with the Raspberry pi3 but more recently use it via usb with the Mist. Admittedly, having not grown up with a speccy, being able to navigate menus, launch a game and even find buttons to move the player character around is not 100% proof all is functioning as it should. Being such a small niche group of us, do you have any suggestions as which mode is better to work with? Game layer or PS2 mode?

User avatar
MasterOfGizmo
Atari God
Atari God
Posts: 1273
Joined: Fri Feb 08, 2013 12:15 pm
Contact:

Re: [ZX Spectrum Core] New Update

Postby MasterOfGizmo » Fri Sep 21, 2018 9:16 am

USB and PS/2 also isn't more than just key up and key down events. I'd expect everything to already be in place to give you a nice setup. It sounds like in Game Layer mode it would just send raw USB key codes for every key. The MIST firmware does all the USB handling and then translates USB keycode into PS/2 keycodes and sends them to the core. The core than gets key up and down events for all individual keys. The spectrum core translates these events back into something the speccy inside expects.

The issue i expect is that in the default key mapping some of the keys on the speccy keyboard wouldn't match exactly what the core is expecting as e.g. there is no established rule to map speccy keys to PC keyboard layouts. But the MIST firmware has a means to swap keys. So if you find some mapping needs to be adopted you can just configure this in the mist.ini

And of that doesn't work you can always add some special support to the firmware. Someone did that for his keyrah which does similar with the amiga keyboard.
MIST board, FPGA based Atari STE and more: https://github.com/mist-devel/mist-board/wiki

squid4
Atari maniac
Atari maniac
Posts: 88
Joined: Tue Oct 25, 2016 8:12 pm

Re: [ZX Spectrum Core] New Update

Postby squid4 » Sat Sep 22, 2018 9:49 am

Thanks MasterOfGizmo for the answer. The problem with it is that instead of the usual, for example pressing key '1', press you get keydown 1, release you get keyup 1. In game layer mode pressing '1' you get keydown 'a' & keyup 'a', release '1' you get keydown 'b' & keyup 'b'.
It's probably not worth the effort for the tiny number of people who have this keyboard.

slingshot
Atari God
Atari God
Posts: 1150
Joined: Mon Aug 06, 2018 3:05 pm

Re: [ZX Spectrum Core] New Update

Postby slingshot » Sat Sep 22, 2018 3:00 pm

But it must be some delay between the two events, and in this case, it's the same as if you press and release the key.

seastalker
Captain Atari
Captain Atari
Posts: 274
Joined: Sun May 15, 2016 3:44 pm

Re: [ZX Spectrum Core] New Update

Postby seastalker » Fri Sep 28, 2018 8:38 am

So if a mist .ini file is edited, then it may work. I'd have to really dive in on the Speccy, but if I create one for myself, I'd certainly share it for the other small group of us.

User avatar
MasterOfGizmo
Atari God
Atari God
Posts: 1273
Joined: Fri Feb 08, 2013 12:15 pm
Contact:

Re: [ZX Spectrum Core] New Update

Postby MasterOfGizmo » Fri Sep 28, 2018 6:23 pm

In game mode it sends one keydown and keyup on _one_ keypress and another different pair of down and up events on release? That sounds super strange. Why would one want something like that?

Who produces this? Can you ask them for a firmware that just sends raw and simple key down and up events?
MIST board, FPGA based Atari STE and more: https://github.com/mist-devel/mist-board/wiki

DanyPPC
Atari Super Hero
Atari Super Hero
Posts: 730
Joined: Tue Feb 21, 2017 7:02 am

Re: [ZX Spectrum Core] New Update

Postby DanyPPC » Sat Jan 05, 2019 5:56 pm

@Sorgelig:

is it possible to have the porting of last ZX Spectrum Core for MiSTer to MiST with Z80 files support ?

Sorgelig
Ultimate Atarian
Ultimate Atarian
Posts: 5106
Joined: Mon Dec 14, 2015 10:51 am
Location: Russia/Taiwan

Re: [ZX Spectrum Core] New Update

Postby Sorgelig » Sat Jan 05, 2019 7:09 pm

DanyPPC wrote:@Sorgelig:

is it possible to have the porting of last ZX Spectrum Core for MiSTer to MiST with Z80 files support ?

Ask slingshot - he is in charge of MiST version of ZX core now :)

slingshot
Atari God
Atari God
Posts: 1150
Joined: Mon Aug 06, 2018 3:05 pm

Re: [ZX Spectrum Core] New Update

Postby slingshot » Sat Jan 05, 2019 8:40 pm

Sorgelig wrote:Ask slingshot - he is in charge of MiST version of ZX core now :)


So I officially promoted :)
Maybe in the distant future - the core support three disk formats and .tap files, it's adequate for almost everything. Z80 of course is good for snapshots coming from emulators. But then SNA would be more useful, since ESXDOS on real machines can create them.

Sorgelig
Ultimate Atarian
Ultimate Atarian
Posts: 5106
Joined: Mon Dec 14, 2015 10:51 am
Location: Russia/Taiwan

Re: [ZX Spectrum Core] New Update

Postby Sorgelig » Sun Jan 06, 2019 7:48 am

slingshot wrote: But then SNA would be more useful, since ESXDOS on real machines can create them.

SNA format is not stream friendly. It has some data in the backward order, so you receive the memory content and only after that you receive the required info how it should be placed in the memory.
If i remember correct there is converter from SNA to Z80.
Actually, i've added Z80 support not for snapshot function (ZX core cannot make snapshot) but because of large set of Z80 files floating around. It was popular to save originally protected or tape-only games in Z80 format right after loading. Nothing to do with snapshot of game play.

User avatar
DrOG
Atari Super Hero
Atari Super Hero
Posts: 651
Joined: Sun Jul 31, 2016 8:23 pm
Location: Gyula, Hungary

Re: [ZX Spectrum Core] New Update

Postby DrOG » Sun Jan 06, 2019 8:27 am

slingshot wrote:...But then SNA would be more useful, since ESXDOS on real machines can create them.

Actually there exists a ZX Spectrum 48K core with .sna support:
http://joco.homeserver.hu/fpga/mist_zx48_en.html
I think it worths to read, as the author describes how he managed to work the .sna loading.
This core is not so sophisticated as the one Sorgelig made, and video output is PAL-only 15kHz over SCART (no VGA).

slingshot
Atari God
Atari God
Posts: 1150
Joined: Mon Aug 06, 2018 3:05 pm

Re: [ZX Spectrum Core] New Update

Postby slingshot » Sun Jan 06, 2019 10:52 am

Will take a look later maybe. Since all games have cracked .tap file and/or converted to TRDOS, it's not a high prio for me now.

DanyPPC
Atari Super Hero
Atari Super Hero
Posts: 730
Joined: Tue Feb 21, 2017 7:02 am

Re: [ZX Spectrum Core] New Update

Postby DanyPPC » Sun Jan 06, 2019 5:27 pm

I think there are some games working in only z80 format, but it remains at your discretion to add support.
Thanks anyway.

desUBIKado
Obsessive compulsive Atari behavior
Obsessive compulsive Atari behavior
Posts: 119
Joined: Sat Jan 06, 2018 11:49 pm

Re: [ZX Spectrum Core] New Update

Postby desUBIKado » Sun Jan 06, 2019 7:01 pm

The Sorgelig's old spectrum core has support for .SNA and .Z80 files by esxDOS NMI browser.

http://www.forofpga.es/viewtopic.php?f=72&t=112 (in spanish)

http://www.forofpga.es/viewtopic.php?f=72&t=152 (in spanish)

DanyPPC
Atari Super Hero
Atari Super Hero
Posts: 730
Joined: Tue Feb 21, 2017 7:02 am

Re: [ZX Spectrum Core] New Update

Postby DanyPPC » Sun Jan 06, 2019 7:28 pm

Ok, I have old core + spectrum.rom and esxdos, but I prefer new core with z80 support, obviously if possible.
I see MiSTer has a new core with z80 support, for this I asked this new feature for MiST too. Nothing other.

desUBIKado
Obsessive compulsive Atari behavior
Obsessive compulsive Atari behavior
Posts: 119
Joined: Sat Jan 06, 2018 11:49 pm

Re: [ZX Spectrum Core] New Update

Postby desUBIKado » Sun Jan 06, 2019 8:25 pm

I understand you, but with old core you can enjoy with ZX1PACK and MyDivMMC pack compilations.

desUBIKado
Obsessive compulsive Atari behavior
Obsessive compulsive Atari behavior
Posts: 119
Joined: Sat Jan 06, 2018 11:49 pm

Re: [ZX Spectrum Core] New Update

Postby desUBIKado » Sun Jan 06, 2019 8:40 pm

I would go crazy if there was support for "General Sound 512" in the Spectrum core

https://www.youtube.com/watch?v=1HGmi4AYdCI

slingshot
Atari God
Atari God
Posts: 1150
Joined: Mon Aug 06, 2018 3:05 pm

Re: [ZX Spectrum Core] New Update

Postby slingshot » Wed Jan 09, 2019 11:09 am

That sound card is a more powerful computer than the Speccy itself :)

User avatar
Newsdee
Atari God
Atari God
Posts: 1467
Joined: Fri Sep 19, 2014 8:40 am

Re: [ZX Spectrum Core] New Update

Postby Newsdee » Wed Jan 09, 2019 11:32 am

Wow, MOD soundtrack on ZX Spectrum... that's amazing.
Is there a list of games that support it?

Sorgelig
Ultimate Atarian
Ultimate Atarian
Posts: 5106
Joined: Mon Dec 14, 2015 10:51 am
Location: Russia/Taiwan

Re: [ZX Spectrum Core] New Update

Postby Sorgelig » Wed Jan 09, 2019 6:31 pm

GeneralSound up to 4MB is already implemented on MiSTer version.
As for MOD player, the TSConf (ZX mod) core is much more suitable.

desUBIKado
Obsessive compulsive Atari behavior
Obsessive compulsive Atari behavior
Posts: 119
Joined: Sat Jan 06, 2018 11:49 pm

Re: [ZX Spectrum Core] New Update

Postby desUBIKado » Thu Jan 10, 2019 10:26 pm

Newsdee wrote:Wow, MOD soundtrack on ZX Spectrum... that's amazing.
Is there a list of games that support it?


I found this page where there are up to 40 games adapted to make use of the General Sound.

desUBIKado
Obsessive compulsive Atari behavior
Obsessive compulsive Atari behavior
Posts: 119
Joined: Sat Jan 06, 2018 11:49 pm

Re: [ZX Spectrum Core] New Update

Postby desUBIKado » Thu Jan 10, 2019 10:36 pm

Sorgelig wrote:GeneralSound up to 4MB is already implemented on MiSTer version.
As for MOD player, the TSConf (ZX mod) core is much more suitable.


It would be fantastic if there was a TSConf (ZX mod) core on the MiST board. There is already in other similar boards like the ReVerSE-U16

https://zx-pk.ru/threads/23528-reverse-u16.html

https://github.com/mvvproject/ReVerSE-U16

slingshot
Atari God
Atari God
Posts: 1150
Joined: Mon Aug 06, 2018 3:05 pm

Re: [ZX Spectrum Core] New Update

Postby slingshot » Thu Jan 10, 2019 10:56 pm

Don't be so excited about GS support on MiST, it's even eats up almost all BRAM on MiSTer :)
It simply won't fit (and as I wrote before, it's a more powerful extension than the base machine itself - use Amiga if you want to play MODs).


Return to “MiST”

Who is online

Users browsing this forum: No registered users and 6 guests