Home
JAQForum Ver 20.06
Log In or Join  
Active Topics
Local Time 07:09 26 Apr 2024 Privacy Policy
Jump to

Notice. New forum software under development. It's going to miss a few functions and look a bit ugly for a while, but I'm working on it full time now as the old forum was too unstable. Couple days, all good. If you notice any issues, please contact me.

Forum Index : Microcontroller and PC projects : Napoleon Commander for CMM2

     Page 1 of 5    
Author Message
jirsoft

Guru

Joined: 18/09/2020
Location: Czech Republic
Posts: 532
Posted: 06:01am 16 Nov 2020
Copy link to clipboard 
Print this post

Hi,
I tried this week to write my first app for CMM2, something similar to Norton (Volkov...) commanders for DOS. Of course, it has limited functionality, but for me already works better than build in FILES....

Napoleon Commander

But, be carefully, it needs longer testing!!!.



Edited 2020-11-16 16:07 by jirsoft
Jiri
Napoleon Commander and SimplEd for CMM2 (GitHub),  CMM2.fun
 
LeoNicolas

Guru

Joined: 07/10/2020
Location: Canada
Posts: 444
Posted: 07:09am 16 Nov 2020
Copy link to clipboard 
Print this post

Very nice application Jiri  
This reminds me of the old but excellent Xtree Gold.
 
paceman
Guru

Joined: 07/10/2011
Location: Australia
Posts: 1326
Posted: 10:54am 16 Nov 2020
Copy link to clipboard 
Print this post

Yes, a very nice job Jiri - it also reminds me of Xtree Gold. This will be a very useful application.

Greg
 
Nimue

Guru

Joined: 06/08/2020
Location: United Kingdom
Posts: 367
Posted: 11:09am 16 Nov 2020
Copy link to clipboard 
Print this post

  jirsoft said  Hi,
I tried this week to write my first app for CMM2, something similar to Norton (Volkov...) commanders for DOS


Norton Commander -- that takes me back.

I also had a DOS based programme that would "archive" your shareware library to a series of 3'5" floppies - but accessed via a Norton like screen -- it then prompted you for the correct disk.

Getting all misty eyed here...

N
Entropy is not what it used to be
 
Nimue

Guru

Joined: 06/08/2020
Location: United Kingdom
Posts: 367
Posted: 11:09am 16 Nov 2020
Copy link to clipboard 
Print this post

  Nimue said  
  jirsoft said  Hi,
I tried this week to write my first app for CMM2, something similar to Norton (Volkov...) commanders for DOS


Norton Commander -- that takes me back.

I also had a DOS based programme that would "archive" your shareware library to a series of 3'5" floppies - but accessed via a Norton like screen -- it then prompted you for the correct disk.

Getting all misty eyed here...

N


edit:  Great work on the navigator.
Entropy is not what it used to be
 
jirsoft

Guru

Joined: 18/09/2020
Location: Czech Republic
Posts: 532
Posted: 03:13pm 16 Nov 2020
Copy link to clipboard 
Print this post

Added support for external VIEWER (F3) and ACTION (ENTER), so it can be extended. As first external action is included Epsilon's MAR extractor (modified code) and as viewer MAR viewer.
Jiri
Napoleon Commander and SimplEd for CMM2 (GitHub),  CMM2.fun
 
yock1960
Senior Member

Joined: 18/08/2020
Location: United States
Posts: 167
Posted: 08:15pm 16 Nov 2020
Copy link to clipboard 
Print this post

I get 'error in line 569: expected a string', running from files or prompt. Just updated to 5.05.06RC20.

Steve
 
jirsoft

Guru

Joined: 18/09/2020
Location: Czech Republic
Posts: 532
Posted: 11:52pm 16 Nov 2020
Copy link to clipboard 
Print this post

  yock1960 said  I get 'error in line 569: expected a string', running from files or prompt. Just updated to 5.05.06RC20.

Steve


Hi Steve,
it's problem of RC20, will be fixed, In RC19 works OK...
Jiri
Napoleon Commander and SimplEd for CMM2 (GitHub),  CMM2.fun
 
TassyJim

Guru

Joined: 07/08/2011
Location: Australia
Posts: 5900
Posted: 01:54am 17 Nov 2020
Copy link to clipboard 
Print this post

While you wait, replace the FUNCTION NCdateTime() with

FUNCTION NCdateTime(f as string) AS STRING
 'prepare date and time of file
LOCAL STRING dt
on error skip
 dt = MM.INFO$(MODIFIED f)
 IF dt<>"" THEN dt = MID$(dt, 3, 14)
 NCdateTime = dt
END FUNCTION


I have another problem.

I installed the program into a folder "NC"
If I try and select that folder, the program gets stuck in a loop as if the keyboard is repeating the enter key.
It only happens with the "NC" program folder.

EDIT I have been unable to repeat this bug so I can't expect you to find it.

An observation:
Your 'sort' is case dependent. In my File Manager, I cheated by displaying all file names in uppercase to solve that issue. I also added a space to the start of the directory name so that the directories always sort to the top. (The space is only there for display, not in the disk name)


Jim
Edited 2020-11-17 14:52 by TassyJim
VK7JH
MMedit   MMBasic Help
 
jirsoft

Guru

Joined: 18/09/2020
Location: Czech Republic
Posts: 532
Posted: 11:55am 17 Nov 2020
Copy link to clipboard 
Print this post

Hi Jim,

  Quote  An observation:
Your 'sort' is case dependent. In my File Manager, I cheated by displaying all file names in uppercase to solve that issue. I also added a space to the start of the directory name so that the directories always sort to the top. (The space is only there for display, not in the disk name)


I modified sort to be case insensitive. Your action with SPACE is unnecessary, every item name begins either with "D" (directory) or "F" (file) and so is sorted. I'm using it for more things, but in sort also puts DIRs before FILEs...

With the stuck keys I have sometimes problem also in EDITOR, it was also reason not to use DEL as parallel to F8, because it looks like F=keys don't stuck so often and with DEL it will be disaster...

NCdateTime left I so, because of newest change in RC21 (info is available also for DIRs), but thanks anyway.
Jiri
Napoleon Commander and SimplEd for CMM2 (GitHub),  CMM2.fun
 
jirsoft

Guru

Joined: 18/09/2020
Location: Czech Republic
Posts: 532
Posted: 11:32pm 18 Nov 2020
Copy link to clipboard 
Print this post

New version of NC (0.40) with some bigger enhancements:
      less screen flickering
      A-Z keys jumps to item with this first char
      configuration
      screenshots of screen and dialogs (PRINT SCREEN/ALT+PRINT SCREEN)
      simple BMP (more POC for future viewers)
      extendability of viewers (F3) and actions (ENTER) with sample
      force HEX viewer with ALT+F3
      status of Unsorted and Hidden files (can be switched On/Off with SHIFT+U, SHIFT+H)
      some bugfixes
     
      I'm sure I forgot something...

Enjoy!
Jiri
Napoleon Commander and SimplEd for CMM2 (GitHub),  CMM2.fun
 
LeoNicolas

Guru

Joined: 07/10/2020
Location: Canada
Posts: 444
Posted: 12:15am 19 Nov 2020
Copy link to clipboard 
Print this post

Thank you Jiri

I'm downloading and starting to test it
 
romba6

Newbie

Joined: 04/07/2020
Location: United Kingdom
Posts: 37
Posted: 11:01am 19 Nov 2020
Copy link to clipboard 
Print this post

Very nice indeed. It brings back many happy??? memories - I think !!!
 
epsilon

Senior Member

Joined: 30/07/2020
Location: Belgium
Posts: 255
Posted: 09:23pm 21 Nov 2020
Copy link to clipboard 
Print this post

Hi Jiri,

I'm interested in what you're showing in the screenshot.
Are you building a C64 VIC emulator? Is that doable? Is there going to be a SID.inc as well?
Epsilon CMM2 projects
 
jirsoft

Guru

Joined: 18/09/2020
Location: Czech Republic
Posts: 532
Posted: 11:19pm 21 Nov 2020
Copy link to clipboard 
Print this post

  epsilon said  Hi Jiri,

I'm interested in what you're showing in the screenshot.
Are you building a C64 VIC emulator? Is that doable? Is there going to be a SID.inc as well?


Hi epsilon,
yes, I'm trying to. Doable for sure, the question is speed...
I took it like mental training, so first I wouldn't to use CSUBs at all, but later because some limitations (no change font definition during of program run) or speed (I started with execution speed about 1% of C64), I added some.

I also thought that I will take some ideas from Peter's 6502 emulator, but there are bugs and is slower than my code. Right now I'm working on NC, but next week I will continue on MM64.

And for SID no, first I'm not able to do it (maybe later some basic "sounds") and I think SID itself is BIG project. I'm writing just 6502 inclusive illegal codes, simplified VIC (just TEXT and BITMAP modes, no interrupt...), basic CIA (memory, IRQ).

My goal is to be able run BASIC and MC programs, that are not using  any speciality, but too little time and too many projects (+ work   )...
Jiri
Napoleon Commander and SimplEd for CMM2 (GitHub),  CMM2.fun
 
elk1984

Senior Member

Joined: 11/07/2020
Location: United Kingdom
Posts: 227
Posted: 11:32pm 21 Nov 2020
Copy link to clipboard 
Print this post

@jirsoft I'd like to say NC is an absolutely cracking program.  It's in my path and I use it all the time!
 
epsilon

Senior Member

Joined: 30/07/2020
Location: Belgium
Posts: 255
Posted: 08:45am 22 Nov 2020
Copy link to clipboard 
Print this post

  jirsoft said  
My goal is to be able run BASIC and MC programs, that are not using  any speciality, but too little time and too many projects (+ work   )...


Thanks. I'm glad you still found the time to write NC. It's an excellent tool.    
Epsilon CMM2 projects
 
yock1960
Senior Member

Joined: 18/08/2020
Location: United States
Posts: 167
Posted: 12:08pm 22 Nov 2020
Copy link to clipboard 
Print this post

Performing get info on a directory exits with error "error in line 154: NCWAITINGON is not declared".

Version 0.41
FW 5.06.00b2

Really nice work!!

Steve
 
yock1960
Senior Member

Joined: 18/08/2020
Location: United States
Posts: 167
Posted: 12:25pm 22 Nov 2020
Copy link to clipboard 
Print this post

Nitpick (defined as engaging in fussy or pedantic fault finding   ), 'PARRENT' should be PARENT .

Maybe you have future plans for 'Cancel' & 'Ok' in question dialogs, but as they currently only respond (apparently) to ESC and Enter...maybe leave 'buttons' out, unless mouse support is coming.

Steve
 
elk1984

Senior Member

Joined: 11/07/2020
Location: United Kingdom
Posts: 227
Posted: 12:45pm 22 Nov 2020
Copy link to clipboard 
Print this post

  yock1960 said  Nitpick (defined as engaging in fussy or pedantic fault finding   ), 'PARRENT' should be PARENT .

Maybe you have future plans for 'Cancel' & 'Ok' in question dialogs, but as they currently only respond (apparently) to ESC and Enter...maybe leave 'buttons' out, unless mouse support is coming.

Steve


Or have them respond to a keyboard shortcut with accelerators?  (O)k and C(a)ncel?  I forget the TUI standards for those.

A bit like this:
 
     Page 1 of 5    
Print this page
© JAQ Software 2024