Post Reply 
A tiny synthetic HP41 challenge
12-08-2016, 09:17 PM (This post was last modified: 12-08-2016 09:18 PM by Dieter.)
Post: #5
RE: A tiny synthetic HP41 challenge
(12-08-2016 08:34 PM)hth Wrote:  If you have 0 as input and you append the 999 exponent at the end, then RCL M will put a non-normalized number in X?

Ah, OK, that's of course correct. But the next operation or a STO/RCL should normalize it.
You can also do it within the routine. For instance by adding zero, like it's done in "MT" of the PPC ROM:

Code:
CLA
ABS
STO M
ASTO M
ASTO M
ASTO M
>"\x00\x09\x99"
CLX
ST+ M
X<> M
CLA
END

Still including a final CLA for cleanup. ;-)

Dieter
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
A tiny synthetic HP41 challenge - Dieter - 12-07-2016, 07:17 PM
RE: A tiny synthetic HP41 challenge - hth - 12-08-2016, 06:25 PM
RE: A tiny synthetic HP41 challenge - hth - 12-08-2016, 08:34 PM
RE: A tiny synthetic HP41 challenge - Dieter - 12-08-2016 09:17 PM



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