Post Reply 
begin/end flag on 12C
06-26-2018, 06:16 AM (This post was last modified: 06-26-2018 06:16 AM by Thomas Radtke.)
Post: #1
begin/end flag on 12C
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.
Find all posts by this user
Quote this message in a reply
06-26-2018, 07:53 AM
Post: #2
RE: begin/end flag on 12C
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.
Find all posts by this user
Quote this message in a reply
06-26-2018, 07:58 AM (This post was last modified: 06-26-2018 10:55 AM by Thomas Radtke.)
Post: #3
RE: begin/end flag on 12C
(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.
Find all posts by this user
Quote this message in a reply
Post Reply 




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