RPL second impressions (HP 28)
|
05-28-2022, 09:35 AM
Post: #67
|
|||
|
|||
RE: RPL second impressions (HP 28)
(05-27-2022 06:07 PM)Thomas Klemm Wrote: The program is mostly a list of go-subroutine calls with a little bit of "real" assembler code sprinkled here and there. Yes, it looks a bit similar but with important differences: - RPL is using the stack for each operation. - HP-71 assembly uses the CPU registers pairs (A,B), (C,D) for the 1 or 2 arguments of each operation, and two scratch registers formed with registers R0-R3. The HP-71 also uses a 4-level stack for keeping intermediate values, but it's only for storage, operations are not directly done one the stack. For more complex algorithms, as encountered in the matrix operations, the HP-71 also uses other temporary memory locations, that must be managed "by hand" by the programmer. So programming in HP-71 assembly requires to juggle with these limited resources (with many opportunities for bugs), whereas System RPL, with its infinite stack, is much easier to program. It was the main benefit (and objective I guess) of System RPL, but it has a cost: a significantly slower execution speed. It is particularly visible between the 32S and 42S, the 32S even with its slower 640 kHz CPU is faster than the 42S for many operations. Although I recognize the benefits of System RPL vs assembly, I prefer to program in assembly for efficiency, in a way not so different from the many people who seem to still prefer programming in RPN/RPL rather than in a clear algebraic language :-) Quote:I have to admit that I wasn't aware that the complex ACOS function was missing from the original HP-71B Math ROM.On my side, I missed your article, it would have been useful for me when writing the complex inverse trig functions for the HP-71 ! (05-28-2022 05:38 AM)Didier Lachieze Wrote: Bill Wickes provided a port of the HP 71 Math Pac PROOT function for the HP 48S/SX which is the same assembly language code with a RPL front end: HP 48 Polynomial RootfinderUnfortunately, Bill just provided the binary code , not the source file. PROOT code is still not commented in my "HP-71 Math ROM source file project". It may not be too difficult because the method is properly documented in the HP75/71 Math ROM manuals, so I may do it someday when I will work again on the HP71 Math Pac. J-F |
|||
« Next Oldest | Next Newest »
|
User(s) browsing this thread: 4 Guest(s)