What is the best, most efficient way of alphabetically sorting an ascii exended memory file on the HP-41?
How to alphabetically sort an alpha XM-file (HP-41)
|
|
« Next Oldest | Next Newest »
|
▼
01-29-2006, 08:15 AM
▼
01-29-2006, 10:40 AM
Have you tried the SORTFL function of the CCD module? ▼
01-29-2006, 10:53 AM
Good tip. Don't have the CCD (waiting for it). I would however need a routine that doesn't use functions outside a standard HP-41CX (to make my upcomming PDA program usable for most people).
01-30-2006, 01:54 AM
It seems the SORTFL function only sort data registers in XM. ▼
01-30-2006, 07:11 AM
That's right, SORTFL can only deal w/ data files (or matrix files if you've changed its file type previously). ASCII files are trickier in that each record can have multiple "registers" (7-words each), thus the file type change trick won't work in this case. No substitute to plain old RPN programming in this case, or so it looks. Best, ÁM
▼
01-30-2006, 07:36 AM
Excuse my ignorance: Matrix files, what's that? ▼
01-30-2006, 08:20 AM
Geir Isene posted:
In some cases your program can run even using no numeric registers at all (and no 'synthetic' registers M,N, etc., either), this is, even with SIZE 000. See my 62-line, SIZE 000 Nth-degree Polynomial Fit program featured in my Datafile article Long Live the Advantage ROM !
02-03-2006, 04:40 PM
Here we go (sorts only ascii files with records of max 24 characters - that's all I need for the "HP-41: The Reminder"-program):
001 *LBL "FLSORT" Edited: 4 Feb 2006, 3:02 a.m. |