ZXpand-Commander

Any discussions related to the creation of new hardware or software for the ZX80 or ZX81
sirmorris
Posts: 2811
Joined: Thu May 08, 2008 5:45 pm

Re: ZXpand-Commander

Post by sirmorris »

That was reported by Yerzmyey also - I found it was a timing bug related to the file count on the card. I have fixed this and uploaded v1.2. Hopefully this will be the last timing related bug :(
Last edited by sirmorris on Fri Sep 28, 2012 12:11 pm, edited 1 time in total.
User avatar
Andy Rea
Posts: 1606
Joined: Fri May 09, 2008 2:48 pm
Location: Planet Earth
Contact:

Re: ZXpand-Commander

Post by Andy Rea »

oops my bad.... had re-dowloaded v1.1 :oops: NOT 1.2 Sorry.

Andy
what's that Smell.... smells like fresh flux and solder fumes...
sirmorris
Posts: 2811
Joined: Thu May 08, 2008 5:45 pm

Re: ZXpand-Commander

Post by sirmorris »

Version 1.3 now available in the top post! Unless issues are forthcoming I think this may well be the last release for a while.

C
sirmorris
Posts: 2811
Joined: Thu May 08, 2008 5:45 pm

Re: ZXpand-Commander

Post by sirmorris »

Version 1.4 just released!

I've added some faster navigation features. You can use '.' to go up a directory level and shift-5/6 to whizz around the file list.

Enjoy!
User avatar
1024MAK
Posts: 5118
Joined: Mon Sep 26, 2011 10:56 am
Location: Looking forward to summer in Somerset, UK...

Re: ZXpand-Commander

Post by 1024MAK »

sirmorris wrote:Version 1.3 now available in the top post! Unless issues are forthcoming I think this may well be the last release for a while.
Then two days later...
sirmorris wrote:Version 1.4 just released!
First: Thanks!

Second, do I change the definition of "for a while" to "about two days" :mrgreen: :lol:

Keep up the good work :D :mrgreen:

Mark
ZX81 Variations
ZX81 Chip Pin-outs
ZX81 Video Transistor Buffer Amp

:!: Standby alert :!:
There are four lights!
Step up to red alert. Sir, are you absolutely sure? It does mean changing the bulb :!:
Looking forward to summer later in the year.
User avatar
yerzmyey
Posts: 1240
Joined: Thu May 15, 2008 10:11 am
Location: Rubber Planet
Contact:

Re: ZXpand-Commander

Post by yerzmyey »

OK, I got ashamed by SirMorris' speed, so finally tested the 1.4 version.

Renaming worx perfectly.
Deleting - too (no errors this time, HA!).
PAGE UP / PAGE DOWN - perfect.

The "." sign on the screen doesn't work as a "go up a directory level", still have to press ".." to go one-up.
I guess the "." was supposed to go instantly to the main path of a disk?

A weird thing: when I copied name.p file into another window - I changed its name into "name" (without *.p).
Then I tried to copy it back.
The commander crashed, destroying the lower line and showing
?K (when "K" is cursor).

Reset is required (because it leaves into BASIC).

Also it does the same when in both windows are the same files (with the same name at least).

And one more thing - both of them mixed:
when in one window is "name" and in another is "name.p", then COPY will crash the commander too. Interesting.

Do my words have any sense? ;)
IN NIHILUM REVERTERIS - a big text-adventure game for ZX81: http://tiny.pl/g2m6m
"MONOCHROME" issue 5 - (Spring 2014) free paper/PDF magazine about ZX81: http://tiny.pl/q2m44
ZX81 COMPETITIONS 2007/2009: http://zx81.republika.pl/
sirmorris
Posts: 2811
Joined: Thu May 08, 2008 5:45 pm

Re: ZXpand-Commander

Post by sirmorris »

@Mark - Hehe well I had a few minutes to fettle... ;)

@Yerz - When you save a file without an extension the interface will add '.p' as a default. When you try to copy or rename a file and the target exists then you'll get an error and drop out of the commander. This is actually as designed. It doesn't seem right though. Hmm. I'll probably just display the error, the only other option is to either silently overwrite or disable the default extension generation. The 1st is easy, the latter would require some hackery...

C
User avatar
yerzmyey
Posts: 1240
Joined: Thu May 15, 2008 10:11 am
Location: Rubber Planet
Contact:

Re: ZXpand-Commander

Post by yerzmyey »

Yes yes, some error message sounds good.
"File already exists" or something like that, and then simply return to the main-screen (both windows) without copying.
Sounds good.
IN NIHILUM REVERTERIS - a big text-adventure game for ZX81: http://tiny.pl/g2m6m
"MONOCHROME" issue 5 - (Spring 2014) free paper/PDF magazine about ZX81: http://tiny.pl/q2m44
ZX81 COMPETITIONS 2007/2009: http://zx81.republika.pl/
sirmorris
Posts: 2811
Joined: Thu May 08, 2008 5:45 pm

Re: ZXpand-Commander

Post by sirmorris »

I will implement error display where possible but the load/save routines (used by the COPY function) have their own error handling which uses the BASIC interpreter and therefore I can't catch the errors it generates.

The problem is only with files that don't have an extension. If you open one of these then the PIC firmware assumes you mean a P file and appends the extension for you. Your test case above then becomes:

1. copy a file X/ABC.P to new folder Y
(load X/ABC.P to memory, save as Y/ABC.P)
2. rename Y/ABC.P to Y/ABC
3. copy Y/ABC to X/ABC
(load Y/ABC to memory, ...) <- FAILS because ZXpand will try to load Y/ABC.P which of course does not exist.

There are a few things I could do, such as temporarily disabling auto extension generation, or changing the overlay ROM to return errors rather than pass them to the BASIC error handler, or even re-implement the ROM's load/save code inside commander, but these all sound quite heavy-duty for such an edge-case.

In short - unless there is an outcry then this will probably just have to be left as-is. The solutions are a little heavy in relation to the problem.

It has resulted in a dark damp fog surrounding me though - leaving software with a known bug is upsetting :cry:

Thinking about it though - the filename strings passed around by commander are all prefixed with a forward slash, something which is unlikely to happen in common use. I could detect this in the zxpand firmware and disable extension generation - but would this cause issues elsewhere I wonder?

Thoughts?

C
User avatar
yerzmyey
Posts: 1240
Joined: Thu May 15, 2008 10:11 am
Location: Rubber Planet
Contact:

Re: ZXpand-Commander

Post by yerzmyey »

if this is so difficult then I would leave it as it is now. Plus some info in TXT file or what.
Because if You start tinkering with it so much, then we all will probably end up with a necessity of writing *.p extension all the time, even from basic, while a regular loading.
So.
Let's forget it. :)
I think.
IN NIHILUM REVERTERIS - a big text-adventure game for ZX81: http://tiny.pl/g2m6m
"MONOCHROME" issue 5 - (Spring 2014) free paper/PDF magazine about ZX81: http://tiny.pl/q2m44
ZX81 COMPETITIONS 2007/2009: http://zx81.republika.pl/
Post Reply