HP Forums
begin/end flag on 12C - Printable Version

+- HP Forums (https://www.hpmuseum.org/forum)
+-- Forum: HP Calculators (and very old HP Computers) (/forum-3.html)
+--- Forum: General Forum (/forum-4.html)
+--- Thread: begin/end flag on 12C (/thread-10966.html)



begin/end flag on 12C - Thomas Radtke - 06-26-2018 06:16 AM

Is there a shorter (in terms of memory) way to the test the begin/end flag in a program than just to try a defined TVM calculation on the 12C? Quite sure there isn't one but one never knows.


RE: begin/end flag on 12C - grsbanks - 06-26-2018 07:53 AM

It's one of the bits in the CPU's status register so I'm not sure how you'd go about extracting that on a 12C with no means of synthetic programming.

What exactly are you trying to achieve? It might be possible to use something more accessible (such as a register) to hold the value and make the decision what to do, then run BEGIN or END in the corresponding program branch.


RE: begin/end flag on 12C - Thomas Radtke - 06-26-2018 07:58 AM

(06-26-2018 07:53 AM)grsbanks Wrote:  What exactly are you trying to achieve?
Implementing a simple interest calculation based on the TVM registers; returns the result in the PMT register. Works, but disregards the flag in favour of the end mode.

Edit:
(06-26-2018 07:53 AM)grsbanks Wrote:  It might be possible to use something more accessible (such as a register) to hold the value and make the decision what to do, then run BEGIN or END in the corresponding program branch.
Yes, but by using the known registers only the program becomes quite intuitive to use.