Post Reply 
(49G) Integer Square Detection
10-12-2015, 09:41 AM
Post: #2
RE: HP 49G: Integer Square Detection
(10-11-2015 06:48 AM)Gerald H Wrote:  A problem arises in compiling the programme: the ZINTs in bold type have been processed through the command

FPTR2 ^Z>ZH

& are in fact hexadecimal ZINTs - the on-calculator compiler attempts to return the four numbers as decimal ZINTs, thus debilitating the programme.

Similarly, the decompiler produces the programme as here printed, not indicating the hexadecimal nature of the ZINTs.

Anyone have a solution to this compilation problem?

Perhaps you can replace those lines with NIBHEX statements. Not human-readable, but at least they would compile correctly.

Example: Running ZINT 123 through Z>ZH returns the hex zint 7B which is displayed as "7;" by the HP 50g. This can be encoded in a program listing as:

NIBHEX 4162080000B70

<0|ΙΈ|0>
-Joe-
Visit this user's website Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
(49G) Integer Square Detection - Gerald H - 10-11-2015, 06:48 AM
RE: HP 49G: Integer Square Detection - Joe Horn - 10-12-2015 09:41 AM



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