Post Reply 
HP-15C CE woes: 1 bug, 2 limitations, 3 questions
08-09-2023, 04:29 PM (This post was last modified: 08-09-2023 05:02 PM by ThomasF.)
Post: #33
RE: HP-15C CE woes: 1 bug, 2 limitations, 3 questions
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

[35/45/55/65/67/97/80 21/25/29C 31E/32E/33E|C/34C/38E 41C|CV|CX 71B 10C/11C/12C/15C|CE/16C 32S|SII/42S 28C|S 48GX/49G/50G 35S 41X]
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 - ThomasF - 08-09-2023 04:29 PM



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