(15C) Binary to Decimal Conversion

01102016, 10:09 PM
Post: #1




(15C) Binary to Decimal Conversion
HP 15C: Binary to Decimal Conversion
Link: http://edspi31415.blogspot.com/2016/01/h...rsion.html Input: A number in binary form. Maximum value: 1 111 111 111 (1,023 in decimal). Registers used: R0 = number in binary R1 = number in decimal R2 = counter I have this program under label C. Program: Code: LBL C 

01112016, 12:05 AM
(This post was last modified: 01112016 04:12 AM by Thomas Klemm.)
Post: #2




RE: (15C) Binary to Decimal Conversion
Cf. (HP11C) Base Conversion
For this specific case you can use the constants 2 and 10 instead of registers 1 and 2. Code: STO 0 Cheers Thomas 

01112016, 10:00 PM
Post: #3




RE: (15C) Binary to Decimal Conversion
(01102016 10:09 PM)Eddie W. Shore Wrote: Link: http://edspi31415.blogspot.com/2016/01/h...rsion.html Should be 21. 

01112016, 10:41 PM
Post: #4




RE: (15C) Binary to Decimal Conversion
(01112016 10:00 PM)Thomas Klemm Wrote:(01102016 10:09 PM)Eddie W. Shore Wrote: Link: http://edspi31415.blogspot.com/2016/01/h...rsion.html Well, that's only off by a factor of 10... Bob Prosperi 

« Next Oldest  Next Newest »

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