Renaming files in X-memory or exchange their content ?

Renaming files in X-memory or exchange their content ?

Postby floppy_stuttgart » Sat Jul 02, 2022 8:12 pm

Hello,
when I have 2 files in X-Memory, a Q1 and a Q2 file (each having 4 data registers), know anybody how to exchange their content?
or is there a function for renaming files? I could not find any renaming function in X-function module (or in a CX).
My HP41 is for now full-up with Clonix-D & Sandmath. If a new function has to be used, I will probably have to make an own module (never done it).
My plan B in X-memory, is, I could
- create a new file Q3 (& transfer the content of Q1 in it)
- delete the file Q1
- create a new Q1 file
- move the content of Q2 into the new created Q1
- delete Q2
- create a new Q2
- move the content of Q3 into Q2
- delete Q3
.. all consuming ressources.
Help/comments are welcome.
floppy_stuttgart
.........
.........
 
Posts: 111
Joined: Mon Mar 29, 2021 2:36 pm

Re: Renaming files in X-memory or exchange their content ?

Postby Garth » Sun Jul 03, 2022 12:09 am

I wrote a program decades ago to swap the contents of files, and then later thought, "That was dumb! Why didn't I just swap the names?!" But looking it up now, I see there's no way to rename files, at least not in the functions provided in the cx. Maybe there's a way in one of the modules.
Garth
Moderator
Moderator
 
Posts: 276
Joined: Tue Jan 20, 2009 1:31 am

Re: Renaming files in X-memory or exchange their content ?

Postby rprosperi » Sun Jul 03, 2022 1:09 am

If you have AMC-OSX installed (and all serious 41 users should have this installed) the function RENMFL can be used to rename any X-Mem file. Put “OLDNAME,NEWNAME” into Alpha and [XEQ] "RENMFL".
rprosperi
.........
.........
 
Posts: 73
Joined: Sat Apr 11, 2015 1:03 pm

Re: Renaming files in X-memory or exchange their content ?

Postby Garth » Sun Jul 03, 2022 1:29 am

rprosperi wrote:If you have AMC-OSX installed (and all serious 41 users should have this installed) the function RENMFL can be used to rename any X-Mem file. Put “OLDNAME,NEWNAME” into Alpha and [XEQ] "RENMFL".

What is it? It doesn't show up in https://calc.fjk.ch/db/hp41mod.php . My 41 is full except 4K. I have:

CAT2_12-12-17.jpg
Garth
Moderator
Moderator
 
Posts: 276
Joined: Tue Jan 20, 2009 1:31 am

Re: Renaming files in X-memory or exchange their content ?

Postby floppy_stuttgart » Sun Jul 03, 2022 9:37 am

I have this:

Code: Select all
CAT 2
-TIME  2C   
-CX TIME   
-PRINTER 2E
-MASS ST 1H
-CTL FNS   
-SNDMTH'4X4
-HL MATH+   
-EXT FCN 2D
-CX EXT FCN


I see this "RENMFL" is in SandBox page 33 http://systemyde.com/pdf/AMMC_OSX_Manual.pdf
But no idea how to sqeeze that in my CX with ClonixD; except creating a new module containing the functions I need from SandMath, SandBox.
floppy_stuttgart
.........
.........
 
Posts: 111
Joined: Mon Mar 29, 2021 2:36 pm

Re: Renaming files in X-memory or exchange their content ?

Postby rprosperi » Sun Jul 03, 2022 7:03 pm

Garth wrote:What is it? It doesn't show up in https://calc.fjk.ch/db/hp41mod.php . My 41 is full except 4K. I have:


Well, that's certainly an impressive 41 configuration, but without OSX, it would still feel incomplete to me.

The AMC_OS/X BS4 Module is available here: http://www.hp41.org/LibView.cfm?Command ... temID=1165

A slightly newer manual is available here: http://www.systemyde.com/pdf/AMMC_OSX+_Manual.pdf

The is a customized version of the CCD ROM, made by Angel Martin, based on the original custom CCD image (providing the OS extensions) created by Ray Del Tondo. Review the OSX manual and I'm sure you'll agree. I could list my favorite features here, but everyone uses a 41 differently, and there are so many, it's hard to pick "best" features, though notable major functions include a RAM editor, ROM (HEX) editor, MCODE Disassembler, enhanced CAT features, etc.

Check it out - you'll be glad you did.

Note: AMC OSX requires LIB4 and must be run on a 41CX (41C & 41CV not supported)
rprosperi
.........
.........
 
Posts: 73
Joined: Sat Apr 11, 2015 1:03 pm

Re: Renaming files in X-memory or exchange their content ?

Postby Garth » Sun Jul 03, 2022 8:31 pm

Thanks. Like all of Angel's, it looks really excellent. The one on Systemyde would not open, so I looked at the one on this site. I should have added in my post above showing the CAT 2 listing that Library 4 is there too but does not show up in a CAT 2 listing. That listing, BTW, is on the monochrome monitor from the HP92198 80-column HPIL display interface.
Garth
Moderator
Moderator
 
Posts: 276
Joined: Tue Jan 20, 2009 1:31 am

Re: Renaming files in X-memory or exchange their content ?

Postby floppy_stuttgart » Tue Jul 05, 2022 12:15 pm

rprosperi wrote:Well, that's certainly an impressive 41 configuration, but without OSX, it would still feel incomplete to me.

Perhaps I could change my ClonixD setup to sqeeze it in? How?
Attachments
Clonix-D_SMAT_ADV.jpg
floppy_stuttgart
.........
.........
 
Posts: 111
Joined: Mon Mar 29, 2021 2:36 pm

Re: Renaming files in X-memory or exchange their content ?

Postby rprosperi » Wed Jul 06, 2022 11:41 pm

Looks like you'll have to remove something, I can't say which is least important, that depends on your usage.

AMC OSX is a general purpose set of OS enhancements and utilities which are very helpful for 41 system use, but it offers very little in terms of pure math functions (an exception is the AEC ROM program generator, that might be helpful). So if you use all those math-intensive ROMs (which is kinda hard to imagine) then this may not be worth adding, but many day-to-day things (such as changing an Ext Mem filename, which is what started this discussion) are easier with this installed.

I recommend you remove one (you choose) and temporarily install AMC OSX and go through the manual, there are LOTS of small, not so obvious enhancements, and give it a serious try. I suspect you may find it more useful than some of those ROMs, but I've no idea what your primary calculating interests/needs are, so I could be wrong.
rprosperi
.........
.........
 
Posts: 73
Joined: Sat Apr 11, 2015 1:03 pm

Re: Renaming files in X-memory or exchange their content ?

Postby pcscote » Thu Jul 07, 2022 2:18 pm

floppy_stuttgart wrote:
rprosperi wrote:Well, that's certainly an impressive 41 configuration, but without OSX, it would still feel incomplete to me.

Perhaps I could change my ClonixD setup to sqeeze it in? How?

Or buy a second Clonix-D module which could hold ROMs for pages 6, 7 and C to F.
User avatar
pcscote
......
......
 
Posts: 29
Joined: Sat Oct 25, 2014 1:24 pm
Location: Quebec/Canada

Next

Return to Programming

Who is online

Users browsing this forum: Ahrefs [Bot] and 1 guest