Post Reply 
HP-15C CE woes: 1 bug, 2 limitations, 3 questions
08-09-2023, 09:06 PM
Post: #39
RE: HP-15C CE woes: 1 bug, 2 limitations, 3 questions
(08-09-2023 04:29 PM)ThomasF Wrote:  Maybe this little program can show the correct decimal value:

Code:

001 - 43,22, d LBL D
002 -       23 HEX
003 -    44  0 STO 0
004 -        0 0
005 -    44 32 STO I
006 -       34 X<>Y
007 - 43,22, 0 LBL 0
008 -        A A
009 -    42  9 RMD
010 -    45 32 RCL I
011 -        4 4
012 -       20 *
013 -    43  E RLCn 
014 -    42 40 OR
015 -    43 24 ISZ
016 -    45  0 RCL 0
017 -        A A
018 -       10 /
019 -    44  0 STO 0
020 - 43, 5, 4 CF 4
021 -    43 48 X#0?
022 -    22  0 GTO 0
023 -       33 RDN

It will convert a decimal value to hex BCD digits.
Doesn't handle overflow, and works only for unsigned values.

HEX
enter 6F
DEC
105 d (but is actually 111)
GSB D
111 h (correctly shown, but a HEX-value)

So with a decimal value in x, GSB D will show the same value as decimal but in Hex-mode.

Edit: Added keycodes

Cheers,
Thomas
Very good
Thank You
Also works for 60(61)+80n numbers
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
RE: HP-15C CE woes: 1 bug, 2 limitations, 3 questions - Voldemar - 08-09-2023 09:06 PM



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