51 (edited by david_ps 2017-09-22 06:46:54)

Re: New NMI handler / .commands

Spezzi63 wrote:

Very good progress.

It can be seen what work this has to do.
When ub880d had his work with the NMI, we could not support him
...
Continued success,
Günter

Thanks Günter, ub880d's NMI navigator is a very good job, is the base of my work and it is where I turn to whenever I have a doubt because of the little information I have about the esxDOS API.

Thanks to ub880d.

52

Re: New NMI handler / .commands

Luzie wrote:

Again: Good work! But when I try to attach a .TRD-Image to Drive A: with a press of key A I only get "ESXDOS error 5". Using old NMI.SYS via J attaches TRD-file without problem.

Hi Luzie, I have tested it with various .TRD files and always works ok. Error 5 is 'No such file or directory', can you send me the problematic TRD file to test it? Thanks.

53 (edited by Luzie 2017-09-22 20:07:58)

Re: New NMI handler / .commands

david_ps wrote:
Luzie wrote:

Again: Good work! But when I try to attach a .TRD-Image to Drive A: with a press of key A I only get "ESXDOS error 5". Using old NMI.SYS via J attaches TRD-file without problem.

Hi Luzie, I have tested it with various .TRD files and always works ok. Error 5 is 'No such file or directory', can you send me the problematic TRD file to test it? Thanks.

Hi, I think it may be my fault starting Emulator with wrong machine (48k Speccy without Betadisk-Interface instead of Pentagon with Betadisk-If). Have to try later (because I must go to work now ;-)) and report it back here.

But... now I think further... Old NMI.SYS is working. Hmm. I test more and if I cannot find it out, I´ll send you .TRD-File(s) or .HDF-File.

54

Re: New NMI handler / .commands

You use some functions as own dot commands called from NMI code ? If yes, then this commands are loaded to divide ram page 2 as standard original dot commands ?

55

Re: New NMI handler / .commands

david_ps wrote:

Hi Luzie, I have tested it with various .TRD files and always works ok. Error 5 is 'No such file or directory', can you send me the problematic TRD file to test it? Thanks.

I found my problem: I missed to copy tapein.nmi, tapeout.nmi and trd2drv.nmi which are new in the latest release v0.0.5 to the Harddisk-Image. Now I added those files and Error 5 is gone :-)

56 (edited by Luzie 2017-09-22 20:14:24)

Re: New NMI handler / .commands

Spezzi63 wrote:

An idea would be to add a note to the USR 15616 command if load Disk to start TR-Dos.

I don´t think it is necessary to put those hint into help-page. Better, easier and faster will be if .TRD can be loaded, mounted and directly bootet with a press of ENTER (like in original NMI.SYS).

57 (edited by velesoft 2017-09-22 21:17:52)

Re: New NMI handler / .commands

Original version use this way: mount TRD file to drive and test if exist file "boot" in trd image. If exist then continue in booting (in basic RANDOMIZE USR 15619:REM:LOAD "boot". If not exist "boot" file then autoload and program TRDOS NAVIGATOR (from fat16/32). TRDOS NAVIGATOR is best file commander for trdos. Use two windows, work with up to 4 drives, support copy,rename,erase files,etc... From this commander is possible run programs from non bootable TRD image. Very comfortable work and you not need know any trdos basic commands/syntax... For easy way we can implement this:
- after press enter:
1) mount selected file to drive A
2) autoload 48kB snapshot with trdos navigator (state before start commander)
This enable automatic start of commander for each (non bootable and bootable) TRD file. It's better than direct booting...

I have software for trace esxdos system direct on real ZX Spectrum. Runable direct from NMI BROWSER :-)

58

Re: New NMI handler / .commands

velesoft wrote:

You use some functions as own dot commands called from NMI code ? If yes, then this commands are loaded to divide ram page 2 as standard original dot commands ?

Velesoft, they are not dot commands, there are "overlays" loaded in a 512 bytes NMI area. I'm doing tests to really use dot commands and 7kB of space!

59 (edited by david_ps 2017-09-22 22:52:20)

Re: New NMI handler / .commands

Regarding loading TRD files, working is in progress. Velesoft suggestion is a good idea. I try it.
Velesoft, can you pass me the TR-DOSNavigator in TAP format? I only find it in DSK format.

I will leave ABCD functions as they are in current version, I will implement the load of the TRD by pressing ENTER over it.

60

Re: New NMI handler / .commands

david_ps wrote:

Regarding loading TRD files, working is in progress. Velesoft suggestion is a good idea. I try it.
Velesoft, can you pass me the TR-DOSNavigator in TAP format? I only find it in DSK format.

I sent you an email. Original with source code is here:
http://zx-pk.ru/threads/2952-tr-dos-nav … trdn).html

61

Re: New NMI handler / .commands

I may write small mouse driver for NMI browser. Transparent attribute as cursor, unlimited speed of mouse movement,wheel on mouse used for page-up/down. For mouse without wheel must be on screen buttons for page-up/down.

Number of files on nmi browser: why you print number of current cursor position on last screen line ? Better is print each number at begin of each line before filename (in column with different attribute color for better visual effect). During mouse movement you don't print new cursor positions, because all is on screen.

62 (edited by Luzie 2017-09-24 16:35:01)

Re: New NMI handler / .commands

Another thing on this:

velesoft wrote:

Number of files on nmi browser

Maybe here a little "cosmetic correction" is necessary: If there a two files in a directory, NMI-Browser shows this as four because it counts "." and ".." as files.

63

Re: New NMI handler / .commands

Luzie wrote:

I found my problem: I missed to copy tapein.nmi, tapeout.nmi and trd2drv.nmi which are new in the latest release v0.0.5 to the Harddisk-Image. Now I added those files and Error 5 is gone :-)

Luzie, you must copy all new release files, not only the new ones, the old ones must be not work due to the "overlay" system I use on NMI navigator. Address of internal buffer may change on each assembly/compilation.

64

Re: New NMI handler / .commands

Luzie wrote:

Another thing on this:
Maybe here a little "cosmetic correction" is necessary: If there a two files in a directory, NMI-Browser shows this as four because it counts "." and ".." as files.

Luzie, this number indicates the number of entries in the directory, . and .. are directories, . a self reference and .. a reference to parent, I think that it isn't an error.

65

Re: New NMI handler / .commands

david_ps wrote:
Luzie wrote:

Another thing on this:
Maybe here a little "cosmetic correction" is necessary: If there a two files in a directory, NMI-Browser shows this as four because it counts "." and ".." as files.

Luzie, this number indicates the number of entries in the directory, . and .. are directories, . a self reference and .. a reference to parent, I think that it isn't an error.

I know about this. But more practically I found to display the number of "real files" in a directory. So the user must not decrease the shown number by 2 to get the number of files. No thing we need to start a dicussion over - just make it how you like it! :-)

66 (edited by david_ps 2017-09-26 08:01:35)

Re: New NMI handler / .commands

Hello, here is the new version: https://www.dropbox.com/s/gg8p3iuiobpn5g9/v006.zip?dl=0
Now it loads TRDs with ENTER in drive A and boot it if it has autoboot, else it opens TR-DOS Navigator (courtesy of Velesoft).
ENTER also open BASIC programs saved by SAVE *"...

67

Re: New NMI handler / .commands

david_ps wrote:

Hello, here is the new version: https://www.dropbox.com/s/gg8p3iuiobpn5g9/v006.zip?dl=0
Now it loads TRDs with ENTER in drive A and boot it if it has autoboot, else it opens TR-DOS Navigator (courtesy of Velesoft).
ENTER also open BASIC programs saved by SAVE *"...

Better is always run trdos navigator. Or add feature for start trdos navigator on bootable disc.

Or function for run only trdos navigator without select trd... Ideal if anyone need start navigator more than 1x

68

Re: New NMI handler / .commands

I have always been disappointed that SCL file format is not supported
could one look there also once again a possibility?
This would be a great extension.
Can the TR-DOS Navigator accept that?
http://www.zx-modules.de/fileformats/sclformat.html

v006.zip
My TRD disc with Ice Climber runs perfectly wink

Until next time,
Günter

69

Re: New NMI handler / .commands

Spezzi63 wrote:

I have always been disappointed that SCL file format is not supported
could one look there also once again a possibility?
This would be a great extension.
Can the TR-DOS Navigator accept that?
http://www.zx-modules.de/fileformats/sclformat.html

Hi Günter,

there´s an utility in FUSE utils which easily convert .SCL to .TRD
http://manpages.ubuntu.com/manpages/tru … trd.1.html

And I think HxC2001 Floppy-Emulator Software can als Batch-Convert those files in both directions:
http://hxc2001.free.fr/floppy_drive_emu … l#download

I know - the main problem with .TRD is: If the disk is empty it also takes 640k size and .SCL will only take size of used sectors.

70 (edited by Luzie 2017-09-26 14:53:57)

Re: New NMI handler / .commands

velesoft wrote:
david_ps wrote:

Hello, here is the new version: https://www.dropbox.com/s/gg8p3iuiobpn5g9/v006.zip?dl=0
Now it loads TRDs with ENTER in drive A and boot it if it has autoboot, else it opens TR-DOS Navigator (courtesy of Velesoft).
ENTER also open BASIC programs saved by SAVE *"...

Better is always run trdos navigator. Or add feature for start trdos navigator on bootable disc.

Or function for run only trdos navigator without select trd... Ideal if anyone need start navigator more than 1x

I personally prefer: If a autoboot-file is on the disk, then start this. If not, then start TR-DN.

Suggestion: Control this setting via \sys\CONFIG\TRDOS.CFG File, which steers these settings on esxDOS 0.86B4:

# esxDOS TR-DOS Emulator config file

# LoadMode can be 0 for STANDARD and 1 for STEALTH mode
# STEALTH mode loads more software but requires stable bus (always $ff).
LoadMode=1

# Read/WriteDelay should be set according to your system to approximate real TR-DOS speed. Zero means no delay.
ReadDelay=32
WriteDelay=0

# AutoIM2 handles automatic TR-DOS snapshot interrupt mode detection: 0=disable, 1=enable. AutoIM2 patch by Velesoft
AutoIM2=1

# SafeCallBAS should be set to 1 if you get RBOD (Red Border Of Death) in IM2 loaders (but it might affect the loading of some other software)
SafeCallBAS=0

# AlwaysBoot should be set to 1 if you want to load a custom Boot file (/SYS/TRDBOOT.BIN) when there is no Boot present in the disk.
AlwaysBoot=1

# Beta48 should be set to 1 to enable Beta 48 compatibility (BETA128 software should work as normal in most cases)
Beta48=1

71 (edited by Luzie 2017-09-26 14:57:14)

Re: New NMI handler / .commands

And another thing:

trdn075b.TRD from
http://zx-pk.ru/threads/2952-tr-dos-nav … trdn).html
Download:
http://zx-pk.ru/attachment.php?s=b64bcc … 1493701304

resets Spectrum (under SpecEmu-Emulator) while loaded with NMI v006. Loaded via J / Old NMI.SYS it works.

Apart from that: I like the new NMI Handler so much! Always keep pressing NMI-key to see it :-)

72

Re: New NMI handler / .commands

david_ps wrote:

Hello, here is the new version: https://www.dropbox.com/s/gg8p3iuiobpn5g9/v006.zip?dl=0

Delete Key D not working anymore?

73 (edited by david_ps 2017-09-26 15:43:33)

Re: New NMI handler / .commands

Luzie wrote:
david_ps wrote:

Hello, here is the new version: https://www.dropbox.com/s/gg8p3iuiobpn5g9/v006.zip?dl=0

Delete Key D not working anymore?

Uppps!, I forgot to change it when I coded TRD attachment to unit D roll What key do I use? DELETE (CAPS+0)?

74

Re: New NMI handler / .commands

E for erase wink

75 (edited by Luzie 2017-09-26 16:08:33)

Re: New NMI handler / .commands

david_ps wrote:
Luzie wrote:
david_ps wrote:

Hello, here is the new version: https://www.dropbox.com/s/gg8p3iuiobpn5g9/v006.zip?dl=0

Delete Key D not working anymore?

Uppps!, I forgot to change it when I coded TRD attachment to unit D roll What key do I use? DELETE (CAPS+0)?

Yes, I think, this will be logically and OK for everyone. Or E for ERASE, as Spezzi63 suggested, will also be good!

Could you please think over displaying "Key not programmable/Already assigned" on key-redefine-dialog for those keys from A-Z which are already used from NMI-handler itself? (Just for those users who don´t read manuals/help-dialogs ;-))