(15C) Binary to Decimal Conversion - Printable Version +- HP Forums (https://www.hpmuseum.org/forum) +-- Forum: HP Software Libraries (/forum-10.html) +--- Forum: General Software Library (/forum-13.html) +--- Thread: (15C) Binary to Decimal Conversion (/thread-5498.html) |
(15C) Binary to Decimal Conversion - Eddie W. Shore - 01-10-2016 10:09 PM HP 15C: Binary to Decimal Conversion Link: http://edspi31415.blogspot.com/2016/01/hp-15c-binary-to-decimal-conversion.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 RE: (15C) Binary to Decimal Conversion - Thomas Klemm - 01-11-2016 12:05 AM Cf. (HP-11C) 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 RE: (15C) Binary to Decimal Conversion - Thomas Klemm - 01-11-2016 10:00 PM (01-10-2016 10:09 PM)Eddie W. Shore Wrote: Link: http://edspi31415.blogspot.com/2016/01/hp-15c-binary-to-decimal-conversion.html Should be 21. RE: (15C) Binary to Decimal Conversion - rprosperi - 01-11-2016 10:41 PM (01-11-2016 10:00 PM)Thomas Klemm Wrote:(01-10-2016 10:09 PM)Eddie W. Shore Wrote: Link: http://edspi31415.blogspot.com/2016/01/hp-15c-binary-to-decimal-conversion.html Well, that's only off by a factor of 10... |