43S Stack Register Designation

This area is for discussion about these families of custom high-end Scientific Calculator applications for SwissMicros devices.
toml_12953
Posts: 795
Joined: Wed May 03, 2017 7:46 pm
Location: Malone, NY USA

43S Stack Register Designation

Post by toml_12953 »

Would it be easier to relate documentation to the operation of the 43S if, in 8-level stack mode, the stack registers are labeled X Y Z A B C D T so that T always refers to the top stack level that gets duplicated downward regardless of whether the stack is 4- or 8-level?
Tom L

Some people call me inept but I'm as ept as anybody!
DM10L SN: 059/100
DM41X SN: 00023 (Beta)
DM41X SN: 00506 (Shipping)
DM42 SN: 00025 (Beta)
DM42 SN: 00221 (Shipping)
WP43 SN: 00025 (Prototype)
User avatar
Walter
Posts: 3070
Joined: Tue May 02, 2017 11:13 am
Location: On a mission close to DRS, Germany

Re: 43S Stack Register Designation

Post by Walter »

Yes, in principle, but you suggested this notation for both 4- and 8-level stacks, so:
  1. what shall happen with the contents of level T when you expand the stack from 4 to 8 levels?
  2. what shall happen with the contents of T when you reduce the stack from 8 to 4 levels?
  3. same questions for A, B, C, and D.
  4. do you want the 5 upper levels changing names or their contents being moved or ...?
Thanks in advance for enlightenment.
WP43 SN00000, 34S, and 31S for obvious reasons; HP-35, 45, ..., 35S, 15CE, DM16L S/N# 00093, DM42β SN:00041
H2X
Posts: 885
Joined: Tue Apr 25, 2017 8:00 am
Location: Norðvegr
Contact:

Re: 43S Stack Register Designation

Post by H2X »

Walter wrote:
Mon Dec 30, 2019 10:34 am
Yes, in principle, but you suggested this notation for both 4- and 8-level stacks, so:
  1. what shall happen with the contents of level T when you expand the stack from 4 to 8 levels?
  2. what shall happen with the contents of T when you reduce the stack from 8 to 4 levels?
  3. same questions for A, B, C, and D.
  4. do you want the 5 upper levels changing names or their contents being moved or ...?
Thanks in advance for enlightenment.
Interesting to learn that changing the stack size is intended to work mid-calculation!
What is the metric tensor in imperial units?
User avatar
Walter
Posts: 3070
Joined: Tue May 02, 2017 11:13 am
Location: On a mission close to DRS, Germany

Re: 43S Stack Register Designation

Post by Walter »

H2X wrote:
Mon Dec 30, 2019 12:37 pm
Interesting to learn that changing the stack size is intended to work mid-calculation!
As it did with the WP34S and 31S already. 8-)
WP43 SN00000, 34S, and 31S for obvious reasons; HP-35, 45, ..., 35S, 15CE, DM16L S/N# 00093, DM42β SN:00041
toml_12953
Posts: 795
Joined: Wed May 03, 2017 7:46 pm
Location: Malone, NY USA

Re: 43S Stack Register Designation

Post by toml_12953 »

Walter wrote:
Mon Dec 30, 2019 10:34 am
Yes, in principle, but you suggested this notation for both 4- and 8-level stacks, so:
  1. what shall happen with the contents of level T when you expand the stack from 4 to 8 levels?
  2. what shall happen with the contents of T when you reduce the stack from 8 to 4 levels?
  3. same questions for A, B, C, and D.
  4. do you want the 5 upper levels changing names or their contents being moved or ...?
Thanks in advance for enlightenment.
What does the 34s do? Maybe the 43S could do one of these for example:

I had never thought about changing the stack size mid-calculation although why you'd want to reduce stack size in the middle of a calculation is a mystery to me. In that case, the alternate 4- to 8-level arrangement would be best.

Code: Select all

          Before                          After                 Alternate 8-Level
           4-Level                        8 Level
            T   4                            T     4                 T  0
            Z   3                            D     0                 D  0
            Y   2                            C     0                 C  0
            X   1                            B     0                 B  0
                                             A     0                 A  4
                                             Z     3                 Z  3
                                             Y     2                 Y  2
                                             X     1                 X  1
                                              
           Before                         After                Alternate 4-Level
           8-Level                      4 Level
           T  8                            T  8                     T  4
           D  7                            Z  3                     Z  3
           C  6                            Y  2                     Y  2
           B  5                            X  1                     X  1
           A  4
           Z  3
           Y  2
           X  1    
Tom L

Some people call me inept but I'm as ept as anybody!
DM10L SN: 059/100
DM41X SN: 00023 (Beta)
DM41X SN: 00506 (Shipping)
DM42 SN: 00025 (Beta)
DM42 SN: 00221 (Shipping)
WP43 SN: 00025 (Prototype)
H2X
Posts: 885
Joined: Tue Apr 25, 2017 8:00 am
Location: Norðvegr
Contact:

Re: 43S Stack Register Designation

Post by H2X »

toml_12953 wrote:
Mon Dec 30, 2019 4:20 pm
Walter wrote:
Mon Dec 30, 2019 10:34 am
Yes, in principle, but you suggested this notation for both 4- and 8-level stacks, so:
  1. what shall happen with the contents of level T when you expand the stack from 4 to 8 levels?
  2. what shall happen with the contents of T when you reduce the stack from 8 to 4 levels?
  3. same questions for A, B, C, and D.
  4. do you want the 5 upper levels changing names or their contents being moved or ...?
Thanks in advance for enlightenment.
What does the 34s do? Maybe the 43S could do one of these for example:

I had never thought about changing the stack size mid-calculation although why you'd want to reduce stack size in the middle of a calculation is a mystery to me. In that case, the alternate 4- to 8-level arrangement would be best.

Code: Select all

          Before                          After                 Alternate 8-Level
           4-Level                        8 Level
            T   4                            T     4                 T  0
            Z   3                            D     0                 D  0
            Y   2                            C     0                 C  0
            X   1                            B     0                 B  0
                                             A     0                 A  4
                                             Z     3                 Z  3
                                             Y     2                 Y  2
                                             X     1                 X  1
                                              
           Before                         After                Alternate 4-Level
           8-Level                      4 Level
           T  8                            T  8                     T  4
           D  7                            Z  3                     Z  3
           C  6                            Y  2                     Y  2
           B  5                            X  1                     X  1
           A  4
           Z  3
           Y  2
           X  1    
Wouldn't you have to copy the 4-level T value into 8-level ABCD (as well as T) registers, in order to not drop zero values into your calculation?
What is the metric tensor in imperial units?
User avatar
Walter
Posts: 3070
Joined: Tue May 02, 2017 11:13 am
Location: On a mission close to DRS, Germany

Re: 43S Stack Register Designation

Post by Walter »

toml_12953 wrote:
Mon Dec 30, 2019 4:20 pm
What does the 34s do? Maybe the 43S could do one of these for example:

I had never thought about changing the stack size mid-calculation although why you'd want to reduce stack size in the middle of a calculation is a mystery to me.
We simply allow the user to change stack size at any time, no limits. So mid-calculation size changes may happen. 8-)

What the WP34S and 31S do can be found most easily with these calculators and/or in their manuals. :o ;)

I'll spare you the time searching and finding excuses why you don't use them. :oops: Quoting the WP34S manual I happen to have at hand on my HDD:
Note that the register contents will remain unchanged in this operation.
So reducing stack size simply means cutting off the top 4 levels returning them to the pool of global general purpose registers. And expanding stack size means allocating 4 extra registers then participating in stack mechanics (far easier than elementary quantum mechanics, BTW).

Rest assured the WP31 works the same way. And the 43S will work the same way unless you can demonstrate any other (more complicated) method has significant advantages. That's going to be your task though. 8-)
WP43 SN00000, 34S, and 31S for obvious reasons; HP-35, 45, ..., 35S, 15CE, DM16L S/N# 00093, DM42β SN:00041
H2X
Posts: 885
Joined: Tue Apr 25, 2017 8:00 am
Location: Norðvegr
Contact:

Re: 43S Stack Register Designation

Post by H2X »

Walter wrote:
Mon Dec 30, 2019 4:57 pm
And expanding stack size means allocating 4 extra registers then participating in stack mechanics (far easier than elementary quantum mechanics, BTW).
Initializing their values to zero - or the value of the 4-level T register?
What is the metric tensor in imperial units?
toml_12953
Posts: 795
Joined: Wed May 03, 2017 7:46 pm
Location: Malone, NY USA

Re: 43S Stack Register Designation

Post by toml_12953 »

Walter wrote:
Mon Dec 30, 2019 4:57 pm
We simply allow the user to change stack size at any time, no limits. So mid-calculation size changes may happen. 8-)
Of course with RPN, there's no way of knowing if the person is in the middle of a calculation or not! A full stack may be left over from other calculations so, yeah, you should allow a change at any time.
Walter wrote:
Mon Dec 30, 2019 4:57 pm
What the WP34S and 31S do can be found most easily with these calculators and/or in their manuals. :o ;)

I'll spare you the time searching and finding excuses why you don't use them. :oops:
Since I have no interest in the 34 or 31, I didn't have a copy of the manual. The other 40 or 50 calculators in which I am interested keep me busy enough!
Walter wrote:
Mon Dec 30, 2019 4:57 pm
Rest assured the WP31 works the same way. And the 43S will work the same way unless you can demonstrate any other (more complicated) method has significant advantages. That's going to be your task though. 8-)
Forget it! I like consistency. Since those do it that way, I'd agree to continue using the same method for the 43S. Don't let me be a guastafesta (spelling?) or party pooper as my mother used to call me. :?
Last edited by toml_12953 on Mon Dec 30, 2019 10:34 pm, edited 1 time in total.
Tom L

Some people call me inept but I'm as ept as anybody!
DM10L SN: 059/100
DM41X SN: 00023 (Beta)
DM41X SN: 00506 (Shipping)
DM42 SN: 00025 (Beta)
DM42 SN: 00221 (Shipping)
WP43 SN: 00025 (Prototype)
User avatar
Walter
Posts: 3070
Joined: Tue May 02, 2017 11:13 am
Location: On a mission close to DRS, Germany

Re: 43S Stack Register Designation

Post by Walter »

Ok, thanks Tom, with your approval we'll continue the way we started with the WP34S.
(Meanwhile, please learn quoting in a forum thread - it's very similar to setting parentheses properly. You can even correct it after posting.)

And to Haakon (H2X): Why should we initialize anything? It will pop out the stack anyway. And if we want to load the stack with anything, we'd just press FILL.

Enjoy!
WP43 SN00000, 34S, and 31S for obvious reasons; HP-35, 45, ..., 35S, 15CE, DM16L S/N# 00093, DM42β SN:00041
Post Reply