![]() |
How to alphabetically sort an alpha XM-file (HP-41) - Printable Version +- HP Forums (https://archived.hpcalc.org/museumforum) +-- Forum: HP Museum Forums (https://archived.hpcalc.org/museumforum/forum-1.html) +--- Forum: Old HP Forum Archives (https://archived.hpcalc.org/museumforum/forum-2.html) +--- Thread: How to alphabetically sort an alpha XM-file (HP-41) (/thread-86328.html) |
How to alphabetically sort an alpha XM-file (HP-41) - Geir Isene - 01-29-2006 What is the best, most efficient way of alphabetically sorting an ascii exended memory file on the HP-41?
Re: How to alphabetically sort an alpha XM-file (HP-41) - Raymond Del Tondo - 01-29-2006 Have you tried the SORTFL function of the CCD module?
Re: How to alphabetically sort an alpha XM-file (HP-41) - Geir Isene - 01-29-2006 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).
Re: How to alphabetically sort an alpha XM-file (HP-41) - Geir Isene - 01-30-2006 It seems the SORTFL function only sort data registers in XM.
Re: How to alphabetically sort an alpha XM-file (HP-41) - Ángel Martin - 01-30-2006 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
Re: How to alphabetically sort an alpha XM-file (HP-41) - Geir Isene - 01-30-2006 Excuse my ignorance: Matrix files, what's that?
Re: How to alphabetically sort an alpha XM-file (HP-41) - Valentin Albillo - 01-30-2006
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 ! Re: How to alphabetically sort an alpha XM-file (HP-41) - Geir Isene - 02-03-2006 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.
|