Anything like "One-Minute Marvels" for the 41C?
05-25-2015, 09:17 PM
Post: #1
 Dave Britten Senior Member Posts: 1,492 Joined: Dec 2013
Anything like "One-Minute Marvels" for the 41C?
In case you're not familiar with it, One-Minute Marvels was a compilation of short, useful routines for the 48 series. They were generally EXTREMELY compact and elegant, the sort of things you could leave in RAM as part of your toolbox.

Are there any similar compilations for the 41? Math routines (GCD, LCM, nCr, nPr, etc.), utilities, stack/register tricks, or anything else would be interesting, both to add functionality, and pick up on some programming techniques.

For example, I've gotten GCD down to this, but I'll bet it can be done more elegantly: (preserves stack and fills T properly, but not L)

Code:
LBL "GCD" LBL 00 MOD LASTX X<>Y X!=0? GTO 00 CLX + RTN
05-25-2015, 09:33 PM
Post: #2
 Thomas Klemm Senior Member Posts: 1,447 Joined: Dec 2013
RE: Anything like "One-Minute Marvels" for the 41C?
You could ommit CLX since x = 0 when the program exits the loop.

Cheers
Thomas
05-25-2015, 09:39 PM
Post: #3
 Dave Britten Senior Member Posts: 1,492 Joined: Dec 2013
RE: Anything like "One-Minute Marvels" for the 41C?
(05-25-2015 09:33 PM)Thomas Klemm Wrote:  You could ommit CLX since x = 0 when the program exits the loop.

Cheers
Thomas

Right you are. See? That's why I'd like a collection of time-tested stuff.
05-25-2015, 10:26 PM
Post: #4
 Dave Frederickson Senior Member Posts: 1,780 Joined: Dec 2013
RE: Anything like "One-Minute Marvels" for the 41C?
Synthetic programming offers lots of neat tricks. The PPC ROM is the essential tool for that, but then for the cost you might as well get a Clonix module.
05-25-2015, 10:27 PM
Post: #5
 rprosperi Senior Member Posts: 4,089 Joined: Dec 2013
RE: Anything like "One-Minute Marvels" for the 41C?
(05-25-2015 09:17 PM)Dave Britten Wrote:  Are there any similar compilations for the 41? Math routines (GCD, LCM, nCr, nPr, etc.), utilities, stack/register tricks, or anything else would be interesting, both to add functionality, and pick up on some programming techniques.

The PPC ROM is likely your best source for such a collection, though it of course includes much more. The manual alone would be a tremendous source of such gems.

Also, the book "Calculator Tips and Routines" by John Dearing has a lot of this type stuff.

I think both are available on the Museum USB drive, or the TOS collection, which you probably already have (or should have).

Though not quite as condensed, the set of PPC Journals on Jake's DVD likely has every single routine you could ever want. You may have to search harder, but these would typically include thorough documentation as well.

--Bob Prosperi
05-25-2015, 10:36 PM
Post: #6
 Dave Britten Senior Member Posts: 1,492 Joined: Dec 2013
RE: Anything like "One-Minute Marvels" for the 41C?
(05-25-2015 10:27 PM)rprosperi Wrote:
(05-25-2015 09:17 PM)Dave Britten Wrote:  Are there any similar compilations for the 41? Math routines (GCD, LCM, nCr, nPr, etc.), utilities, stack/register tricks, or anything else would be interesting, both to add functionality, and pick up on some programming techniques.

The PPC ROM is likely your best source for such a collection, though it of course includes much more. The manual alone would be a tremendous source of such gems.

Also, the book "Calculator Tips and Routines" by John Dearing has a lot of this type stuff.

I think both are available on the Museum USB drive, or the TOS collection, which you probably already have (or should have).

Though not quite as condensed, the set of PPC Journals on Jake's DVD likely has every single routine you could ever want. You may have to search harder, but these would typically include thorough documentation as well.

Not seeing "Calculator Tips and Routines" on museum DVD 7.0. Was it added to 8.0? And what's "the TOS collection"? Does Kirk wax macho on RPN?
05-25-2015, 10:50 PM (This post was last modified: 05-25-2015 11:03 PM by d b.)
Post: #7
 d b Senior Member Posts: 489 Joined: Dec 2013
RE: Anything like "One-Minute Marvels" for the 41C?
Dave;

Tight programming has always been in style for our machines, even ones with memories as "immense" as the 41. Another thing i remember as being sought after, among surveyors anyway, were programs which didn't use and alter any registers (ie totally in the stack by liberally using x<>y & rdn) or ones that returned an answer to X while leaving Y alone or replacing it. These were obviously to work inside of or with other larger routines.

There was another thing I did to save main memory back when i was using it for point storage. I'd save a couple of lines on my toggled meters/feet conversion by making the M>ft output a fix 2 and ft>M a fix 3. Simply remembering which one was keytop and which was shifted would have negated that need, but that didn't occur to me then.

RE: "And what's "the TOS collection"? Does Kirk wax macho on RPN?"
Kirk always seemed to me a right hemisphere & analogue kind of guy. Now Spock; He comes from a whole planet full of RPN users.
05-25-2015, 10:53 PM (This post was last modified: 05-25-2015 10:55 PM by Dave Frederickson.)
Post: #8
 Dave Frederickson Senior Member Posts: 1,780 Joined: Dec 2013
RE: Anything like "One-Minute Marvels" for the 41C?
(05-25-2015 10:36 PM)Dave Britten Wrote:  And what's "the TOS collection"? Does Kirk wax macho on RPN?

TOS is That Other Site, or the site that shall not be named. TOS has a CD with lots of 41 stuff. A link to TOS can be found at the bottom of the Clonix41 home page.
05-25-2015, 11:00 PM
Post: #9
 Dieter Senior Member Posts: 2,397 Joined: Dec 2013
RE: Anything like "One-Minute Marvels" for the 41C?
(05-25-2015 10:36 PM)Dave Britten Wrote:  Not seeing "Calculator Tips and Routines" on museum DVD 7.0. Was it added to 8.0?

If you read German (yes, this is especially interesting for our German/Austrian/Swiss forum members), the Dearing book (and some others) was kindly scanned by Martin Hepperle who made all this available for download. Please see his post from last November.

(05-25-2015 10:36 PM)Dave Britten Wrote:  And what's "the TOS collection"?

That's "The Other Site", i.e. Warren Furlow's HP41 website. The mentioned German versions should be available there as well.

Dieter
 « Next Oldest | Next Newest »

User(s) browsing this thread: 1 Guest(s)