Long Filename Browser for ZX-UNO / esxDOS

Field Programmable Gate Array based devices! As exciting as they sound
Post Reply
keithshaw3
Drutt
Posts: 31
Joined: Wed May 20, 2020 4:52 pm

Re: New File Browser for ZX-UNO

Post by keithshaw3 »

bob_fossil wrote: Sun May 24, 2020 3:05 pm v0.07
  • Initial support for saving snapshots in NMI. Shift + S now saves a 48k/128k .SNA file.
  • Initial support for POKEs in NMI. Shift + K lets you enter up to 8 POKES which are then applied when you exit.
  • Added support for X8 (28mhz) turbo mode on ZX-UNO (needs EXP27 core). Thanks to azesmbog for supplying the register information to enable this.
  • Shift + U now attaches a .TRD file to a virtual device (0-3). The attached devices are shown as 0123 in the bottom status line when attached.
  • Rewrote .SNA / .Z80 loading code to work more like the original esxdos NMI to fix reported issues.
  • Added setting 'Remember last folder' to BRWSCFG. If you're several levels deep in a folder tree, when you navigate to the parent folder, the highlight will be put on the folder you were just inside rather than back at the start of the entries for that folder.
  • Added additional delay for keypresses when moving the selection and not scrolling to make it less 'twitchy'.
  • Shift + L will now exit the browser and auto type the selected filename into BASIC (.dot command only).
  • Shift + F will now show information about the selected file.
  • Shift + I / O will attach the selected .TAP file to tape input / output.
Download.
Amazing work, really appreciated 👍snapshot saving was the only thing making me switch back to the original NMI now its not needed. Dropping back to basic is a really handy thing to have too...

Edit: unfortunately I cant download/test it as my broadband has been out since yesterday ☹

As soon as I'm back up and running (I'm told wednesday) I will give some feedback..
keithshaw3
Drutt
Posts: 31
Joined: Wed May 20, 2020 4:52 pm

Re: New File Browser for ZX-UNO

Post by keithshaw3 »

I managed to download from a laptop onto a USB stick and transfer it over, it works a treat :D

All the issues I had have been rectified and am a very happy bunny :D

I like the way you can label the .sna files, very handy.
The poke function is also a handy feature, I have all the crash back issues so I will definitely be trying them out at some point and will report back with feedback once tested.

I don't know hard it would be, but could you add a sort/view option to the files i.e by alphabetical or maybe date added?

K
Spezzi63
Drutt
Posts: 44
Joined: Sat Dec 28, 2019 1:36 pm

Re: New File Browser for ZX-UNO

Post by Spezzi63 »

My dream would still be:
mark, change drive (how Dr. Slumps NMI.SYS "button U"), then insert => then we would have a whole manager :mrgreen: :mrgreen:

Well, even version 0.8.8 cannot call commands, when you are on hd1, nor can you copy files from hd0 to hd1 :oops:
One version could, but I think it was before version 080 ?

I am also not satisfied with anything ;)
pjrodriguez
Drutt
Posts: 23
Joined: Tue May 05, 2020 9:38 am

Re: New File Browser for ZX-UNO

Post by pjrodriguez »

I wanted to report that the snapshots created with the last version in nmi mode don't work on my real Spectrum +3. If I try to load them from the browser (both normal and nmi mode) or Dr. Slump's nmi the game isn't restored and I get random results.
About the file info I only see the 8.3 filename. Is that its intended behaviour? File size info would be nice.
keithshaw3
Drutt
Posts: 31
Joined: Wed May 20, 2020 4:52 pm

Re: New File Browser for ZX-UNO

Post by keithshaw3 »

I tried a save and then reload on my hardware +2 and it worked fine, will test a few more later just to be sure.

K
User avatar
bob_fossil
Manic Miner
Posts: 654
Joined: Mon Nov 13, 2017 6:09 pm

Re: New File Browser for ZX-UNO

Post by bob_fossil »

pjrodriguez wrote: Tue May 26, 2020 8:13 am I wanted to report that the snapshots created with the last version in nmi mode don't work on my real Spectrum +3. If I try to load them from the browser (both normal and nmi mode) or Dr. Slump's nmi the game isn't restored and I get random results.
About the file info I only see the 8.3 filename. Is that its intended behaviour? File size info would be nice.
What games were you trying to snapshot? Where they 48k only games or 128k versions? 48k .sna files are 49179 bytes and 128 .sna files are 131103 bytes long. Are the files the correct size? Any chance you could create two snapshots of a game causing you issues at the same point - once using my NMI and the other with Dr Slump's NMI and make the files available somewhere so I can play spot the difference?

Currently the file info only shows the 8.3 filename. File size is on my to do list.
pjrodriguez
Drutt
Posts: 23
Joined: Tue May 05, 2020 9:38 am

Re: New File Browser for ZX-UNO

Post by pjrodriguez »

I've tested some 128k snapshots and through an hex dump I can see that the first bytes are the contents of the directory where the snapshot was created, which proves that something is miscalculated when they are saved on my real Spectrum +3. I guess that the reasons can be that I am using a card with two partitions or that the device attached to my Spectrum is a DivMMC Enjoy mini (not the pro mini currently on sale). How can I upload one of the wrong snapshots if you want to test it? By the way, the snapshots are the right size and the snapshots created using Dr Slump's nmi work flawlessly.
Maybe for the same reason Shift+N to load the old nmi handler doesn't work either, it resets the machine.
keithshaw3
Drutt
Posts: 31
Joined: Wed May 20, 2020 4:52 pm

Re: New File Browser for ZX-UNO

Post by keithshaw3 »

ok, I've tested a snap of Cybernoid 2 in 48k and 128k and they both work fine. links below to the files,

also, just a note, once you start to type a file name you are unable to delete characters using the delete key, is this intentional?

just for reference, I'm using a Divmmc future with 0.86 firmware on a hardware +2 with a non-partitioned 14gb sd card with the latest NMI.

https://www.dropbox.com/s/jlnskjhybclfm ... S.SNA?dl=0

https://www.dropbox.com/s/43awgy4nzxlbc ... E.SNA?dl=0
User avatar
bob_fossil
Manic Miner
Posts: 654
Joined: Mon Nov 13, 2017 6:09 pm

Re: New File Browser for ZX-UNO

Post by bob_fossil »

pjrodriguez wrote: Tue May 26, 2020 1:35 pm I've tested some 128k snapshots and through an hex dump I can see that the first bytes are the contents of the directory where the snapshot was created, which proves that something is miscalculated when they are saved on my real Spectrum +3. I guess that the reasons can be that I am using a card with two partitions or that the device attached to my Spectrum is a DivMMC Enjoy mini (not the pro mini currently on sale). How can I upload one of the wrong snapshots if you want to test it? By the way, the snapshots are the right size and the snapshots created using Dr Slump's nmi work flawlessly.
Maybe for the same reason Shift+N to load the old nmi handler doesn't work either, it resets the machine.
You can upload the snapshots to Dropbox or Google Drive. Do snapshots saved with the default NMI work correctly on your setup?
User avatar
bob_fossil
Manic Miner
Posts: 654
Joined: Mon Nov 13, 2017 6:09 pm

Re: New File Browser for ZX-UNO

Post by bob_fossil »

keithshaw3 wrote: Tue May 26, 2020 2:04 pm ok, I've tested a snap of Cybernoid 2 in 48k and 128k and they both work fine. links below to the files,

also, just a note, once you start to type a file name you are unable to delete characters using the delete key, is this intentional?

just for reference, I'm using a Divmmc future with 0.86 firmware on a hardware +2 with a non-partitioned 14gb sd card with the latest NMI.

https://www.dropbox.com/s/jlnskjhybclfm ... S.SNA?dl=0

https://www.dropbox.com/s/43awgy4nzxlbc ... E.SNA?dl=0
You can press delete when entering filenames. Just verified this in SpecEmu and my ZX-UNO.
keithshaw3
Drutt
Posts: 31
Joined: Wed May 20, 2020 4:52 pm

Re: New File Browser for ZX-UNO

Post by keithshaw3 »

bob_fossil wrote: Tue May 26, 2020 3:18 pm
You can press delete when entering filenames. Just verified this in SpecEmu and my ZX-UNO.
Odd, did not seem to work for me, will try again...
pjrodriguez
Drutt
Posts: 23
Joined: Tue May 05, 2020 9:38 am

Re: New File Browser for ZX-UNO

Post by pjrodriguez »

Here you have a link to my non-working snapshots.

https://www.dropbox.com/sh/ye85uyd8wir2 ... i4sFa?dl=0

And yes, snapshots created with default and Dr Slump's nmi work well.
Could you add an option to delete and rename files?
User avatar
Luzie
Manic Miner
Posts: 907
Joined: Fri May 01, 2020 2:07 pm

Re: New File Browser for ZX-UNO

Post by Luzie »

Spezzi63 wrote: Tue May 26, 2020 12:06 am My dream would still be:
mark, change drive (how Dr. Slumps NMI.SYS "button U"), then insert => then we would have a whole manager :mrgreen: :mrgreen:

Well, even version 0.8.8 cannot call commands, when you are on hd1, nor can you copy files from hd0 to hd1 :oops:
One version could, but I think it was before version 080 ?

I am also not satisfied with anything ;)
Hi Spezzi63,

I not really understand what you want to say :roll: Maybe you would post this on esxDOS-Forum at http://board.esxdos.org/ in the "Dr. Slumps" thread or the "esxDOS 0.8.8 released" thread instead of this thread here? :?:
User avatar
bob_fossil
Manic Miner
Posts: 654
Joined: Mon Nov 13, 2017 6:09 pm

Re: New File Browser for ZX-UNO

Post by bob_fossil »

pjrodriguez wrote: Tue May 26, 2020 4:17 pm Here you have a link to my non-working snapshots.

https://www.dropbox.com/sh/ye85uyd8wir2 ... i4sFa?dl=0

And yes, snapshots created with default and Dr Slump's nmi work well.
Could you add an option to delete and rename files?
I've had a look at the snapshots and can see what's going wrong - the code that saves the 49152 bytes of RAM from the file in /tmp/browse.nmi to the snapshot file is failing for some reason on your setup. The extra 128K RAM banks seem to be saving correctly. Could you download this test version, save a snapshot and tell me what (if any) BORDER colour you get and any 'Error!' message you get including the number underneath.
pjrodriguez
Drutt
Posts: 23
Joined: Tue May 05, 2020 9:38 am

Re: New File Browser for ZX-UNO

Post by pjrodriguez »

I'm getting error 0 and blue border.
User avatar
bob_fossil
Manic Miner
Posts: 654
Joined: Mon Nov 13, 2017 6:09 pm

Re: New File Browser for ZX-UNO

Post by bob_fossil »

pjrodriguez wrote: Tue May 26, 2020 8:16 pm I'm getting error 0 and blue border.
OK, it appears the error is in the code that tries to open the RAM contents file which is saved to:

Code: Select all

/tmp/browse.nmi
when you initially enter the NMI. It is failing to open it so when it tries to read the contents of the file it's writing the wrong memory into the snapshot. I'm guessing you're not having any issues entering and leaving the NMI menu inside games - games resume correctly and the previous screen is restored?

I've uploaded another test version here to get more information. Again, please note the border colour, error number and text to the right of the error code - this should read something like '/tmp/browse.nmi'.
Spezzi63
Drutt
Posts: 44
Joined: Sat Dec 28, 2019 1:36 pm

Re: New File Browser for ZX-UNO

Post by Spezzi63 »

Luzie wrote: Tue May 26, 2020 6:07 pm Hi Spezzi63,

I not really understand what you want to say :roll: Maybe you would post this on esxDOS-Forum at http://board.esxdos.org/ in the "Dr. Slumps" thread or the "esxDOS 0.8.8 released" thread instead of this thread here? :?:
We already covered that topic:
http://board.esxdos.org/viewtopic.php?id=80

With emulator FUSE with DivIDE
flash esxdos
DivIDE write protect
DivIDE-Master esxdos088.hdf and DivIDE-Slave any other hdf
Hard reset
go to hd1

P.S. bob_fossil , Sorry, I couldn't help it 8-)
Can the ZX-UNO load an hd1 for ESXDOS ?

greetings
pjrodriguez
Drutt
Posts: 23
Joined: Tue May 05, 2020 9:38 am

Re: New File Browser for ZX-UNO

Post by pjrodriguez »

Problem solved, it was easy, I didn't have a TMP folder! Sorry for the trouble.
User avatar
bob_fossil
Manic Miner
Posts: 654
Joined: Mon Nov 13, 2017 6:09 pm

Re: New File Browser for ZX-UNO

Post by bob_fossil »

pjrodriguez wrote: Wed May 27, 2020 7:01 am Problem solved, it was easy, I didn't have a TMP folder! Sorry for the trouble.
Glad you sorted it out. It's also motivated me to add some code into the NMI.SYS to check for the existence of the /tmp folder and create it if it isn't there - to stop this sort of thing happening again in the future. I can't imagine the NMI was working at all for you if it couldn't save that file in the first place?
User avatar
Luzie
Manic Miner
Posts: 907
Joined: Fri May 01, 2020 2:07 pm

Re: New File Browser for ZX-UNO

Post by Luzie »

bob_fossil wrote: Sun May 17, 2020 4:14 pm v0.06
  • ...
  • Shift + N will now restart the NMI with the file SYS/NMI.ORG. So if you copied the esxdos NMI.SYS to this path, Shift + N would restart the NMI using the default esxdos NMI. To restore the browse NMI, either run the supplied .dot command NMIINIT or hard reset / power cycle your machine.
    ...
What do you think on this idea: Shift+N should start a menu which can launch one of multiple "Other/old NMI.SYS"?
E.g. named SYS/NMI.001, SYS/NMI.002, SYS/NMI.003, SYS/NMI.004. Or launch these direct via Shift+1, Shift+2, Shift+3, Shift+4

Thank you for thinking over it and for the work you already done!
User avatar
bob_fossil
Manic Miner
Posts: 654
Joined: Mon Nov 13, 2017 6:09 pm

Re: New File Browser for ZX-UNO

Post by bob_fossil »

Luzie wrote: Thu May 28, 2020 8:57 pm
bob_fossil wrote: Sun May 17, 2020 4:14 pm v0.06
  • ...
  • Shift + N will now restart the NMI with the file SYS/NMI.ORG. So if you copied the esxdos NMI.SYS to this path, Shift + N would restart the NMI using the default esxdos NMI. To restore the browse NMI, either run the supplied .dot command NMIINIT or hard reset / power cycle your machine.
    ...
What do you think on this idea: Shift+N should start a menu which can launch one of multiple "Other/old NMI.SYS"?
E.g. named SYS/NMI.001, SYS/NMI.002, SYS/NMI.003, SYS/NMI.004. Or launch these direct via Shift+1, Shift+2, Shift+3, Shift+4

Thank you for thinking over it and for the work you already done!
Shift + N was added as a workaround for the missing functionality from my NMI in v0.06. I think v0.07 is pretty much feature comparable with the default esxdos NMI (aside from .scr file and screen view from a snapshot file). Why do you need to be able to launch multiple NMIs? I can understand you might want to temporarily switch to Dr Slump's NMI as it has more features - but you can do that within the existing system. As for how useful this would be - let's just say I'm not convinced at the moment. :)
User avatar
Luzie
Manic Miner
Posts: 907
Joined: Fri May 01, 2020 2:07 pm

Re: New File Browser for ZX-UNO

Post by Luzie »

bob_fossil wrote: Thu May 28, 2020 9:29 pmWhy do you need to be able to launch multiple NMIs? I can understand you might want to temporarily switch to Dr Slump's NMI as it has more features - but you can do that within the existing system. As for how useful this would be - let's just say I'm not convinced at the moment. :)
:D It should be a way to make launching/selecting different "old/alternate NMI.SYS" easier to handle for people. And I think this would "finish" peoples (my :lol: ) needs for all the future here as your NMI.SYS offers a "Startramp" for some other NMI.SYS. So your NMI.SYS could be the default/master choice. And if someone wants other NMI.SYS those can be added as NMI.001, NMI.002 and NMI.003 to the /sys/directory. Let me think a little bit so I can convince you a little bit more :lol:
User avatar
Turrican
Microbot
Posts: 187
Joined: Thu Apr 12, 2018 5:48 pm
Location: Brazil

Re: New File Browser for ZX-UNO

Post by Turrican »

Hi [mention]bob_fossil[/mention] .
I´m using your browser on my ZX-UNO and it is fantastic!
The feature of switch between machines and turbo modes are awesome!
Congrats.
User avatar
bob_fossil
Manic Miner
Posts: 654
Joined: Mon Nov 13, 2017 6:09 pm

Re: New File Browser for ZX-UNO

Post by bob_fossil »

Turrican wrote: Thu May 28, 2020 10:53 pm Hi @bob_fossil .
I´m using your browser on my ZX-UNO and it is fantastic!
The feature of switch between machines and turbo modes are awesome!
Congrats.
Thanks for the feedback and kind words. I like watching demos so being able to easily switch between Pentagon and 128k timings was something I had to add - once I found out how to do it. :)
andydansby
Microbot
Posts: 147
Joined: Fri Nov 24, 2017 5:09 pm
Location: Syracuse, NY, USA
Contact:

Re: New File Browser for ZX-UNO

Post by andydansby »

Not sure if this has been reported or if it’s known about or an expected result. If I am not using a /TMP directory CTRL-ALT-F5 pulls up the NMI browser almost instantly. If I have a /TMP directory there is a significant delay (16 seconds). Using.browse v0.07.

Andy Dansby
Post Reply