HP 35s. Base conversions, fast way



#2

Hi all, we know that base conversions in HP 35s require many keystrokes. Input of numbers in bases other than 10 require the suffix to be explicitly entered. Apart from that, to type A B C D E F digits require the hexadecimal mode to be set. I will prove that these programs will reduce the keystrokes in many situations.

HP 35s. Base conversions, fast way.

Table of Contents
=================
1 Using the program
1.1 Example 1: Convert (F1)h to decimal
1.2 Example 2: Convert (63)d to binary
1.3 Example 3: Convert (99)d to hexadecimal and return to decimal mode
1.4 Example 4: Convert (FF)h to binary, go back to decimal mode and later convert (17)o to binary
2 Program listing
3 Registers
4 Revision

1 Using the program
~~~~~~~~~~~~~~~~~~~~

This set of programs are intended to do base
conversions using less keystrokes. I will show you
some examples comparing the standard way and the use
of this set of programs:

1.1 Example 1: Convert (F1)h to decimal
----------------------------------------

This is the best case. When you convert from
hexacecimal to any other base:

Original method This program
-----------------+--------------
blue-key XEQ
1 D
2 ENTER
1/x (F) 1/x (F)
1 1
blue-key blue-key
1 1
6 6
blue-key R/S
1
1

11 keystrokes 9 keystrokes

1.2 Example 2: Convert (63)d to binary
---------------------------------------

This is the worse case. When you convert from
non-hexacecimal to other base:

Original method This program
-----------------+--------------
blue-key XEQ
1 B
4 ENTER
6 6
3 3
ENTER R/S

6 keystrokes 6 keystrokes

After converting the base, the calculator is set on
binary mode (in this example). In many situations
we want to go back to decimal mode to do other
calculations. I will show you this in the next
example.

1.3 Example 3: Convert (99)d to hexadecimal and return to decimal mode
-----------------------------------------------------------------------

Original method This program
-----------------+--------------
blue-key XEQ
1 H
2 ENTER
9 9
9 9
ENTER R/S
blue-key R/S
1
1

9 keystrokes 7 keystrokes

1.4 Example 4: Convert (FF)h to binary, go back to decimal mode and later convert (17)o to binary
--------------------------------------------------------------------------------------------------

This is a common situation.: We do a
conversion. Then we go back to decimal mode to do
other stuff. And after a while we need to make other
conversion to the same base as before:

Original method This program
-----------------+---------------
blue-key XEQ
1 B
2 ENTER
1/x (F) 1/x (F)
1/x (F) 1/x (F)
blue-key blue-key
1 1
6 6
blue-key R/S
1 R/S
4 R/S
blue-key 1
1 7
1 blue-key
blue-key 1
1 7
4 R/S
1
7
blue-key
1
7
ENTER

23 keystrokes 17 keystrokes

2 Program listing
~~~~~~~~~~~~~~~~~~

Line Instruction Notes
------+-------------+-----------
B001 LBL B
B002 HEX
B003 SF 10
B004 ->BIN see note*
B005 BIN
B006 STOP press R/S
B007 DEC
B008 STOP
B009 GTO B002

Line Instruction Notes
------+-------------+-----------
D001 LBL D
D002 HEX
D003 SF 10
D004 ->DEC see note*
D005 DEC
D006 STOP press R/S
D007 GTO D002

Line Instruction Notes
------+-------------+-----------
H001 LBL H
H002 DEC
H003 SF 10
H004 ->HEX see note*
H005 HEX
H006 STOP press R/S
H007 DEC
H008 STOP
H009 GTO H002

Line Instruction Notes
------+-------------+-----------
O001 LBL O
O002 HEX
O003 SF 10
O004 ->OCT see note*
O005 OCT
O006 STOP press R/S
O007 DEC
O008 STOP
O009 GTO O002

* To insert the right arrow press: EQN, BLUE-KEY, 2,
RIGHT-KEY, CLEAR-KEY, CLEAR-KEY, CLEAR-KEY

3 Registers
~~~~~~~~~~~~

No registers used.

4 Revision
~~~~~~~~~~~

06/30/10 - First version.

Edited: 30 June 2010, 2:05 p.m.


Possibly Related Threads...
Thread Author Replies Views Last Post
  A fast Bernoulli Number method for the HP Prime Namir 16 1,283 11-22-2013, 04:46 PM
Last Post: Namir
  Interesting Base Conversions - Porting a 1975 HP 25 Program to the HP 35S Eddie W. Shore 1 332 10-13-2013, 07:49 PM
Last Post: BruceH
  Decimal/Binary Conversions for the HP 39gii - 3/16/2013 Eddie W. Shore 0 233 03-16-2013, 04:30 PM
Last Post: Eddie W. Shore
  Unit conversions inside programs on 50g Chris Smith 2 349 02-23-2013, 05:35 AM
Last Post: Chris Smith
  Very fast modified TEA for HP 48 and up! Raymond Del Tondo 0 212 11-23-2012, 08:43 PM
Last Post: Raymond Del Tondo
  Fast Quadratic Formula for the HP-41C Gerson W. Barbosa 21 1,581 07-18-2012, 08:53 AM
Last Post: Gerson W. Barbosa
  17bii unit conversions Dave Britten 12 869 03-27-2012, 11:59 AM
Last Post: Dave Britten
  WP 34S adding own conversions Lourensk 4 361 03-24-2012, 02:45 PM
Last Post: Walter B
  HP42S freeze after "Fast mode" Tom Grydeland 3 335 02-23-2012, 05:41 AM
Last Post: Tom Grydeland
  HP 15C LE programming, does CPU run fast? designnut 1 257 02-12-2012, 05:13 PM
Last Post: Jeff O.

Forum Jump: