Post Reply 
HP-41 and 42s: AIP with or without sign?
06-06-2018, 05:48 PM
Post: #1
HP-41 and 42s: AIP with or without sign?
The HP-41's Advantage Pac as well as the 42s feature the AIP command (append integer part to Alpha) which appends the integer portion of X to Alpha. That's a nice and really useful command, but I noticed a difference between both implementations:

It looks like the 41's AIP strips the sign of X while the 42s function does not. In other words: with –31,4 in X the '41 appends "31" while the 42s adds "–31" to Alpha.

That's at least how V41 and Free42 behave. Since V41 uses the original ROM code I assume this is the way the AIP command in a "real" Advantage Pac behaves. But what about the 42s? Does AIP preserve the sign or not? And if both implementations are different, what could be the reason? Maybe it was the simple insight that keeping the sign generally is a good idea. ;-)

BTW, Ángel's Sandmath ROM has an AINT command which preserves the sign of X, and so does ARCLI in the CCD ROM. The Sandmath manual mentions the Advantage Pac's AIP counterpart, but there is no remark regarding this difference between the two.

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


Messages In This Thread
HP-41 and 42s: AIP with or without sign? - Dieter - 06-06-2018 05:48 PM



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