Post Reply 
HP45 Behaviour
12-05-2016, 02:18 PM
Post: #1
HP45 Behaviour
Hi all,

I was playing around with the HP-45 emulator and came across this problem

Assume you have a value stored in Memory [1]

(Example: 50 STO 1).

If you do RCL 1, then 50 is placed into the C register and the stack is lifted by one and 50 is displayed as you would expect.

However, when the Enter key is pressed, then the Status register bit 7 is cleared when the code gets back to the main loop.

Now if you press RCL 1, the value is placed into the C register but the stack is not lifted.

Stack 5 Enter 1/x RCL 1
T 0 0 0 0
Z 0 0 0 5
Y 0 5 5 0.2
X 0 5 0.2 50

(Expected) (However)
Stack 5 Enter RCL 1 RCL 1
T 0 0 0 0
Z 0 0 5 0
Y 0 5 5 5
X 0 5 50 50

Anyone know if this happen on a real HP45

cheers

Tony
Find all posts by this user
Quote this message in a reply
12-05-2016, 03:08 PM
Post: #2
RE: HP45 Behaviour
sorry

It's early in the morning, I figured it out

No need for the duplicated entry once the enter key is pressed when another variable is expected

Time for bed

Cheers
Find all posts by this user
Quote this message in a reply
12-05-2016, 05:49 PM
Post: #3
RE: HP45 Behaviour
As they say in the legal profession: "asked and answered."

:-)
Find all posts by this user
Quote this message in a reply
Post Reply 




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