Post Reply 
(SR-52) Binary-to-Decimal conversion
06-16-2022, 06:54 AM (This post was last modified: 06-17-2022 06:45 AM by Thomas Klemm.)
Post: #2
RE: (SR-52) Binary-to-Decimal conversion
TI-57

Code:
00   32 0  :  STO 0
01   32 1  :  STO 1
02     08  :  8
03   32 2  :  STO 2
04     19  :  C.t
05   86 0  :  Lbl 0
06   33 1  :  RCL 1
07     45  :  ÷
08     01  :  1
09     00  :  0
10     85  :  =
11     49  :  Int
12     66  :  x=t
13   51 1  :  GTO 1
14   32 1  :  STO 1
15     55  :  ×
16   33 2  :  RCL 2
17   34 2  :  SUM 2
18     85  :  =
19  -34 0  :  INV SUM 0
20   51 0  :  GTO 0
21   86 1  :  Lbl 1
22   33 0  :  RCL 0
23     81  :  R/S

Example

1101
RST
R/S

13.

11011001
RST
R/S

217.


HP-25

Code:
01: 23 00    : STO 0
02: 23 01    : STO 1
03: 08       : 8
04: 23 02    : STO 2
05: 24 01    : RCL 1
06: 01       : 1
07: 00       : 0
08: 71       : /
09: 14 01    : f INT
10: 15 71    : g x=0
11: 13 18    : GTO 18
12: 23 01    : STO 1
13: 24 02    : RCL 2
14: 23 51 02 : STO + 2
15: 61       : *
16: 23 41 00 : STO - 0
17: 13 05    : GTO 05
18: 24 00    : RCL 0
19: 13 00    : GTO 00

Example

CLEAR PRGM

1101
R/S

13.00

11011001
R/S

217.00




(01-17-2020 04:49 PM)SlideRule Wrote:  … provides a convenient method of converting 8-, 16-, 24-, and 32-bit words to their decimal equivalents.

I'm leaving that part as an exercise to the reader.
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
RE: (SR-52) Binary-to-Decimal conversion - Thomas Klemm - 06-16-2022 06:54 AM



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