Re: HP-67 and TI SR-52 compared Message #2 Posted by Stefan Vorkoetter on 7 May 2008, 10:39 a.m., in response to message #1 by Marcus von Cube, Germany
I think Valentin is correct in his assessment, and I will reword my web site when I get a chance. It's been a long time since I programmed the SR-52, and I had forgotten how much overhead the non-merged keystrokes took.
I also agree with you that AOS is a pain for keystroke programming. One requirement was that any numerical subroutine should begin with "(" and end with ")", otherwise it might not do what you want when called from within another expression. For example, a subroutine to add the contents of registers 01 and 02 (forgive the syntax, I don't remember all the SR-52 instructions):
LBL
0
RCL
01
+
RCL
02
INV
SBR
If you now type (in run mode, not program mode),
2 x SBR 0 =
you'll get (2 x R01) + R02, not 2 x (R01 + R02) like you probably intended.
Hence the subroutine should be:
LBL
0
(
RCL
01
+
RCL
02
)
INV
SBR
So basically every subroutine has 6 keystroke steps of overhead!:
LBL
xxx
(
...
)
INV
SBR
Contrast this with an HP, which has only three keystrokes (and only two steps) of overhead:
LBL xxx
...
RTN
So I think Valentin is correct.
I guess I remember the SR-52 as being rather powerful compared to my previous programmable, which was a Commodore PR-100 with 72 non-merged steps, no labels, and a single test.
Stefan
|