Page 2 of 3

Re: Spectrum ZX

Posted: Sat Jul 28, 2018 2:34 am
by crashoverride
briansm wrote:Does the size need to be a parameter though? It would save trouble if it was just worked out from the size of the binary file, something like:
The constraint is that .fw should not be capable of overwriting the device firmware, bootloader, or partitions (the 3 files that are flashed). The "slot" system was removed to allow complex/large applications (Doom, MicroPython, etc) to be packaged without source code modifications (maintenance). Since some applications rely on specific offsets, the partition size is a necessary parameter. This allows deterministic partition layouts that do not change each time a binary is built (file length changes).

BOOT SET ERROR
1) When the above error is encountered, turn the device off and back on. The application list will be displayed again.
2) Press "Menu".

This error has been corrected, and the fix will be included in the next device firmware update.

Re: Spectrum ZX

Posted: Sat Jul 28, 2018 5:36 am
by crashoverride
The "BOOT SET ERROR" is resolved in the 20180726 device firmware.

Re: Spectrum ZX

Posted: Mon Jul 30, 2018 8:58 am
by kamots
mad_ady wrote:User @Kamots expressed his frustration with springboard and wanted to eventually pursue an alternate menu: https://github.com/theforest/trampoline
I'm not frustrated with Springboard. It is very good and I am impressed with how well it works, but OtherCrashOverride has very specific plans for it and I'd like to see something a little more flexible in the future.

Re: Spectrum ZX

Posted: Mon Jul 30, 2018 6:32 pm
by jutleys

Re: Spectrum ZX

Posted: Sun Aug 05, 2018 10:59 am
by lix-alpha
Is there any way to remap the buttons ?
Because right now most games can't be played.
I tried maybe 50 games without success except Zynaps...
Or is there any Roms repository I should be aware of that offer ZX games playable without a keyboard ?

Re: Spectrum ZX

Posted: Sun Aug 05, 2018 1:59 pm
by mad_ady
You can remap keys by going into Menu -> Keyboard. There are some presets and you can add your own

Re: Spectrum ZX

Posted: Sun Aug 05, 2018 10:35 pm
by lix-alpha
mad_ady wrote:You can remap keys by going into Menu -> Keyboard. There are some presets and you can add your own
Yeah I saw the Keyboard Menu and the Setup Buttons menu but I meant without a keyboard, to be able to use the directional pad of the Odroid-Go.

Re: Spectrum ZX

Posted: Sun Aug 05, 2018 10:51 pm
by mad_ady
That's where you map what the dpad does (what keys it sends like o/p for left/right, etc)

Re: Spectrum ZX

Posted: Sun Aug 05, 2018 11:00 pm
by lix-alpha
mad_ady wrote:That's where you map what the dpad does (what keys it sends like o/p for left/right, etc)
Ok Ill try playing with the setup a bit. Thanks

Re: Spectrum ZX

Posted: Tue Aug 14, 2018 4:23 pm
by davidknight247
A minor update to fix a few menu bugs. The file size has also been shrunk.

https://bitbucket.org/DavidKnight247/od ... downloads/

Re: Spectrum ZX

Posted: Wed Aug 15, 2018 1:07 pm
by JasonB32
@davidknight247 , Is another update coming because it seems you made a commit after this bug in regards to the onscreen keyboard?

Great work btw thank you!

Re: Spectrum ZX

Posted: Wed Aug 15, 2018 2:46 pm
by davidknight247
JasonB32 wrote:@davidknight247 , Is another update coming because it seems you made a commit after this bug in regards to the onscreen keyboard?
The only changes I made were to the menu code. I am yet to review the rest of Briansm’s code.
JasonB32 wrote:Great work btw thank you!
I have only contributed audio and menu code to this project. Full credit should go to briansm for a fantastic effort.

Re: Spectrum ZX

Posted: Thu Aug 16, 2018 2:21 am
by JasonB32
Oh well great work to both of you @briansm and @davidknight247, I really appreciate it.

Re: Spectrum ZX

Posted: Mon Aug 20, 2018 7:04 am
by davidknight247
Another update:
  • Turbo mode - for Freescape and football sim games (sound will be muted)
    Enabled esp32 power management
    Changed icon
    Use second core for video
    Fix onscreen keyboard
https://bitbucket.org/DavidKnight247/od ... downloads/

NOTE: Whilst testing I have occasionally noticed you get a blank screen immediately after installing a new version. Restarting the system seems to fix this bug for now.

Re: Spectrum ZX

Posted: Mon Aug 20, 2018 2:25 pm
by mad_ady
Thanks for the update. Can you point out what the power management code does (and how it looks like)?

Re: Spectrum ZX

Posted: Mon Aug 20, 2018 3:06 pm
by davidknight247
Power management is a setting in the sdkconfig file in the root directory. Peripheral drivers can set the cpu frequency to 160MHz and apb to 80MHz. However I2S is not supported yet so my understanding is that it may not be having much effect yet.

Docs are here
https://esp-idf.readthedocs.io/en/lates ... ement.html

Re: Spectrum ZX

Posted: Mon Aug 20, 2018 4:49 pm
by mad_ady
Sounds interesting, thanks. I was thinking of adding Pause support for Doom and I could turn off screen + set a low power mode to conserve battery.

Re: Spectrum ZX

Posted: Mon Aug 20, 2018 8:16 pm
by aukondk
Great stuff! It's this emulator that finally sold me on getting the Go.

What is the feasibility of having support for the later Spectrum machines? I'm specifically thinking of the 128k onwards that had an AY sound chip. I love playing Fast Food on this but I'm having to hum the music :D

Re: Spectrum ZX

Posted: Mon Aug 20, 2018 8:21 pm
by davidknight247
128k is definitely something I would like to tackle but we are memory constrained. Judging by the speed increase in turbo mode it looks like the cpu can cope so it’s a definite maybe!

Re: Spectrum ZX

Posted: Fri Aug 24, 2018 2:31 am
by kamots
mad_ady wrote:Sounds interesting, thanks. I was thinking of adding Pause support for Doom and I could turn off screen + set a low power mode to conserve battery.
This is sleep mode. It is already in the Go Play firmware but will be eventually removed. You can rip it out of there :)

Re: Spectrum ZX

Posted: Wed Aug 29, 2018 6:46 pm
by IrregularShed
I registered on this forum purely because of this emulator. Excellent work, dev chaps!

I have a very small wish-list, but as my C coding abilities are far behind my other language choices I'll just put these out there:
  • reset Spectrum option
  • per-game keyboard mapping (so that I can play the likes of Skooldaze without losing the customisation)
  • Kempston joystick option
  • sticky shift keys on the pop-up keyboard (I couldn't 'delete', nor type a quote)
Playing Jet Pac on the Odroid-Go was wonderful!

Re: Spectrum ZX

Posted: Thu Aug 30, 2018 4:53 am
by briansm
The shift keys are fixed-mapped to the select and start buttons, e.g. 'select' and '0' does a delete, 'start' and 'p' gives souble-quotes.

it's a bit fiddly but faster than making sticky shift buttons and it was easier to code.

I'll try and do per-game button maps (as extra file) and alphabetic shorting and filtering of the directory listings too.

Re: Spectrum ZX

Posted: Sat Sep 22, 2018 11:31 pm
by padnoter
this is brilliant, many many thanks brian & david.

it's the reason i bought my odroid-go, esp. after i was one of the unlucky vega+ backers (what a farce that turned out to be).

not sure if you are still developing/enhancing, but if you are, my wish list would be;

1) to be able to store key mappings per game, as a text file (that could be quickly created & copied to sd card)
2) to have the whole thing integrated into the Go-play firmware, to make easy switching between them

but it really is an excellent job,

thanks again guys - much appreciated.

Re: Spectrum ZX

Posted: Sun Sep 23, 2018 9:24 am
by Niknice
I’m having a fantastic time with this wonderful emulator, and was wondering whether it would be possible to increase the screen size to make the gameplay area bigger and lose the loading borders?

Re: Spectrum ZX

Posted: Sun Oct 14, 2018 5:46 pm
by Praia
Hi,

Thanks fro this great implementation, works very awesome!

Would be nice if you could add key mappings per game, for example with filename identical to rom name, but other file extension. Then you could backup the key mappings, or prepare the key mappings outside of the Odroid

At the moment, I have to remap the keyboard almost each time when switching games

Re: Spectrum ZX

Posted: Tue Oct 23, 2018 2:35 pm
by kamots
Hey @briansm - check out the new keyboard, may be handy for your emulator. :)

Re: Spectrum ZX

Posted: Mon Nov 05, 2018 2:38 am
by Fratzengeballer
I like it a lot! Therefore I bought the GO! Thanks!
Will you add 128k support?

Re: Spectrum ZX

Posted: Mon Nov 19, 2018 12:44 am
by davidknight247
Niknice wrote:I’m having a fantastic time with this wonderful emulator, and was wondering whether it would be possible to increase the screen size to make the gameplay area bigger and lose the loading borders?
Apologies for my absence - I'm back to studying for my degree and trying to fit in a full time job so don't have much/any free time right now!

I'd like to implement this as well - I'll test it when I have time, unless somebody else wishes to have a bash at this?

QWERTY Keyboard and Spectrum ZX

Posted: Fri Dec 07, 2018 1:31 am
by Speccifan
I have the new QWERTY keybord, but it is not supported by the emulator.
Do you plan to support the keyboard?
Is it possible to write BASIC programs and to store and reload them?
I can only load these snapshots, How to work wit the Spectrum OS and Basic?

Regards,
Peter

Re: Spectrum ZX

Posted: Sat Jan 12, 2019 4:59 am
by Praia
I have created an updated version of the software with the following features:
  • Store a set of button mappings per game. For a game [gamename].z80 the button mappings are stored in [gamename].map
  • resume.txt no longer contains the button mappings, only the file and the path.
  • Save game in separate file, so the original ROM stays unmodified and can be reloaded. For a game [gamename].z80 the game is saved as [gamename]-sav.z80
  • Show the list of games alphabetically
  • Only show directories, *.z80 and *.sna files in the Load feature
Can you give me access to a branch, for example development, so I can commit the update and create a pull request?

Re: Spectrum ZX

Posted: Sat Jan 12, 2019 9:05 am
by rooted
Praia wrote:I have created an updated version of the software with the following features:
  • Store a set of button mappings per game. For a game [gamename].z80 the button mappings are stored in [gamename].map
  • resume.txt no longer contains the button mappings, only the file and the path.
  • Save game in separate file, so the original ROM stays unmodified and can be reloaded. For a game [gamename].z80 the game is saved as [gamename]-sav.z80
  • Show the list of games alphabetically
  • Only show directories, *.z80 and *.sna files in the Load feature
Can you give me access to a branch, for example development, so I can commit the update and create a pull request?
You don't need access to create a pull request?

Re: Spectrum ZX

Posted: Sat Jan 12, 2019 6:03 pm
by Praia
I tried but without success:

AccessDenied.jpg
AccessDenied.jpg (25.15 KiB) Viewed 3000 times

Re: Spectrum ZX

Posted: Sat Jan 12, 2019 6:16 pm
by rooted
Fork the repo on bitbucket, clone that repo locally, make changes, commit, push to your fork, then create pull request.

https://confluence.atlassian.com/bitbuc ... 49527.html

Re: Spectrum ZX

Posted: Sat Jan 12, 2019 7:43 pm
by kcoles
Any chance of dropping it here in the forum for the meantime?

Re: Spectrum ZX

Posted: Sat Jan 12, 2019 8:51 pm
by padnoter
this is going to be fantastic..... thank you v. much Praia- the changes you've mentioned will make the excellent emulator so much easier to use- key mappings particularly..

can''t wait to try it.

thanks again

Re: Spectrum ZX

Posted: Sat Jan 12, 2019 10:43 pm
by Praia
rooted wrote:
Sat Jan 12, 2019 6:16 pm
Fork the repo on bitbucket, clone that repo locally, make changes, commit, push to your fork, then create pull request.

https://confluence.atlassian.com/bitbuc ... 49527.html

Thanks for the explanation. Had no previous experience with bitbucket. Will do that tomorrow on Sunday, too busy this afternoon.

I also want to create a more detailed document explaining how to build the emulator from scratch on Windows with all the tools, it was the first espressif project for me and it took me some time find out how to compile the code and buld the emulator

Yes, the emulator works really great with the key mapping per game :)

I also had invested in the crowd sourcing project for the Vega plus that never delivered, amazing that the odroid go can do the same thing much better and for a lower price :)

Re: Spectrum ZX

Posted: Sun Jan 13, 2019 5:17 am
by Nemo1984
Can't wait to try it!

Re: Spectrum ZX

Posted: Sun Jan 13, 2019 3:29 pm
by mad_ady
@Praia: consider submitting an article for Odroid Magazine as well.

Re: Spectrum ZX

Posted: Sun Jan 13, 2019 9:06 pm
by Praia
Just created the pull request with button mapping per game

Until the pull request has been reviewed, you can find the updated source code and the newly compiled rom file 'spectrum 20190113.fw', here: https://bitbucket.org/RobDaPraia/odroid ... rc/master/

Happy gaming :)

Re: Spectrum ZX

Posted: Mon Jan 14, 2019 12:06 am
by padnoter
brilliant - thanks, keys perfect now!... zx-vega+ eat your heart out!!

Re: Spectrum ZX

Posted: Mon Jan 14, 2019 12:34 am
by davidknight247
Praia wrote:
Sun Jan 13, 2019 9:06 pm
Just created the pull request with button mapping per game

Until the pull request has been reviewed, you can find the updated source code and the newly compiled rom file 'spectrum 20190113.fw', here: https://bitbucket.org/RobDaPraia/odroid ... rc/master/

Happy gaming :)
Thanks Praia, nice work! I’ve received your pull request and will add your code changes when I have a chance to check it more thoroughly tonight.

Re: Spectrum ZX

Posted: Mon Jan 14, 2019 5:15 pm
by Praia
We found a bug in the new code that casues the emulator to crash if you have more than 128 games in a directory.

I will update the code to remove this bug. Probably in the coming weekend.

So if you are using the 'spectrum 20190113.fw rom, be aware that this rom can crash if you have more than 128 spectrum games on your sd card

Re: Spectrum ZX

Posted: Wed Jan 30, 2019 9:31 pm
by vbrusca
Love your work btw just got Spectrum running on my device.

Re: Spectrum ZX

Posted: Thu Jan 31, 2019 2:33 am
by padnoter
loving the spectrum emulator still. thanks all involved.

if there was a wishlist i could have, it would be;

1) to be able to load .TAP & .TZX files - they are commonly used/found on the net/ & used for new modern releases.
2) 128k spectrum support

but brilliant work on what we have now.

Re: Spectrum ZX

Posted: Thu Jan 31, 2019 10:17 pm
by kcoles
Any News on this yet? If its going to be a while I'll sanitise my collection to less than 255. However it would be nice to have everything on the menu :-)

Thanks,

Keith.
Praia wrote:
Mon Jan 14, 2019 5:15 pm
We found a bug in the new code that casues the emulator to crash if you have more than 128 games in a directory.

I will update the code to remove this bug. Probably in the coming weekend.

So if you are using the 'spectrum 20190113.fw rom, be aware that this rom can crash if you have more than 128 spectrum games on your sd card

Re: Spectrum ZX

Posted: Thu Jan 31, 2019 10:17 pm
by kcoles
Any News on this yet? If its going to be a while I'll sanitise my collection to less than 128. However it would be nice to have everything on the menu :-)

Thanks,

Keith.
Praia wrote:
Mon Jan 14, 2019 5:15 pm
We found a bug in the new code that casues the emulator to crash if you have more than 128 games in a directory.

I will update the code to remove this bug. Probably in the coming weekend.

So if you are using the 'spectrum 20190113.fw rom, be aware that this rom can crash if you have more than 128 spectrum games on your sd card

Re: Spectrum ZX

Posted: Fri Feb 01, 2019 12:24 am
by vbrusca
Is there more information on the key mapping in the latest version that is currently being reviewed before a new build is made? I'm just curious if the key codes are the same as the .ini files used for MSX, C64? And does the mapping file have to be in the same folder as the rom or in the data folder? Thanks in advance can't wait to get this version working so I can map out the controls for some games.

Re: Spectrum ZX

Posted: Fri Feb 01, 2019 2:24 am
by padnoter
vbrusca - i'm using it now, i know it has the 128files bug, but that isn't important to me.
the key mappings are great... when you load a game, you set the keys in the emulator as normal/before.. and this automatically creates the keymapping file for you, so you don't need to create them - let the emulator do it for you. yes i can see the keymap (text) file after and it has numbers in, so you could pre-create, but there's no need.

works great

i am just hoping for .TAP & 128k support one day

Re: Spectrum ZX

Posted: Sat Feb 02, 2019 1:09 am
by vbrusca
Ah, I'm creating a set of mapping files based on game write ups I found for the ZX Spectrum, there are about 600 I'm hoping to extract 400 or so control map files from that data.
I'll let you guys know how it goes. I might be able to have a few hundred games pre-mapped using the ODROID-GO and the docs I found.

Re: Spectrum ZX

Posted: Wed Feb 13, 2019 6:42 pm
by Praia
kcoles wrote:
Thu Jan 31, 2019 10:17 pm
Any News on this yet? If its going to be a while I'll sanitise my collection to less than 128. However it would be nice to have everything on the menu :-)

Thanks,

Keith.
Praia wrote:
Mon Jan 14, 2019 5:15 pm
We found a bug in the new code that casues the emulator to crash if you have more than 128 games in a directory.

I will update the code to remove this bug. Probably in the coming weekend.

So if you are using the 'spectrum 20190113.fw rom, be aware that this rom can crash if you have more than 128 spectrum games on your sd card
Hi, It will be one of the coming weekends, too busy the past weeks

More info:

* the key codes are not the same as the .ini files used for MSX, C64
* the mapping file has to be in the same folder as the game rom file
* the current limitation is for number of files in one folder, a work around if you have 1000 games is to use 10 subfolders (not really nice solution, but it works)
* current update of code is needed, because the ODroid had too little memory to perform the sort of all the files in memory, will update the code to do external sorting

Sharing prefabbed sets of mapping files sounds great