The Museum of HP Calculators


Hex -> Dec for the HP-41C/CV/CX

This program is free and was created and uploaded by Russ Gilbert.

This program is supplied without representation or warranty of any kind.

Filename 41hexdec.raw. XEQ 'HD'.
There are two notices when the program begins, '0-9 DO R/S' and 'DO J TO END'. The letters A-F just press those and wait a few seconds. For 0-9, you have to hit R/S after pressing them. When you are finished with the hex number, hit the J key and the decimal number will be displayed. The original hex number can be seen using the ALPHA key. Requires SIZE 030. Too big to fit in stock 41C with SIZE 030. Doesn't require CX extended funtions.

Documentation Information (CD or source code)
How to get this Program to your Calculator (via HP-IL, disk, wand, and fingers)
Download Binary (.raw)

Program Listing

LINE  KEYS
 01 LBL "HD"
 02 "0-9 DO R/S"
 03 AVIEW
 04 CF 22
 05 SF 27
 06 CF 29
 07 0
 08 STO 29
 09 FIX 00
 10 XEQ 01
 11 "DO J TO END"
 12 AVIEW
 13 CLA
 14 LBL "X"
 15 FS?C 22
 16 XEQ 11
 17 RTN
 18 GTO "X"
 19 LBL 11
 20 9
 21 X<>Y
 22 X>Y?
 23 GTO 12
 24 XEQ 14
 25 RTN
 26 LBL 01
 27 "A"
 28 ASTO 10
 29 "B"
 30 ASTO 11
 31 "C"
 32 ASTO 12
 33 "D"
 34 ASTO 13
 35 "E"
 36 ASTO 14
 37 "F"
 38 ASTO 15
 39 RTN
 40 LBL 12
 41 TONE 02
 42 AVIEW
 43 GTO "X"
 44 LBL 13
 45 AVIEW
 46 1
 47 ST+ 29
 48 9
 49 ENTER
 50 RCL 29
 51 X>Y?
 52 XEQ J
 53 RTN
 54 LBL 14
 55 STO IND 29
 56 ARCL IND 29
 57 ASTO 26
 58 XEQ 13
 59 RTN
 60 LBL 15
 61 -1
 62 ENTER
 63 RCL 29
 64 X=Y?
 65 GTO 16
 66 RCL IND 29
 67 ENTER
 68 RCL 28
 69 *
 70 ST+ 27
 71 1
 72 ST- 29
 73 16
 74 ST* 28
 75 GTO 15
 76 RTN
 77 LBL 16
 78 RCL 27
 79 VIEW 27
 80 TONE 08
 81 GTO 02
 82 LBL J
 83 1
 84 TONE 05
 85 ST- 29
 86 1
 87 STO 28
 88 0
 89 STO 27
 90 GTO 15
 91 LBL A
 92 10
 93 CF 22
 94 STO IND 29
 95 ARCL 10
 96 XEQ 13
 97 GTO "X"
 98 LBL B
 99 CF 22
100 11
101 STO IND 29
102 ARCL 11
103 XEQ 13
104 GTO "X"
105 LBL C
106 CF 22
107 12
108 STO IND 29
109 ARCL 12
110 XEQ 13
111 GTO "X"
112 LBL D
113 CF 22
114 13
115 STO IND 29
116 ARCL 13
117 XEQ 13
118 GTO "X"
119 LBL E
120 CF 22
121 14
122 STO IND 29
123 ARCL 14
124 XEQ 13
125 GTO "X"
126 LBL F
127 CF 22
128 15
129 STO IND 29
130 ARCL 15
131 XEQ 13
132 GTO "X"
133 LBL 02
134 FIX 04
135 CF 27
136 SF 29
137 END

Go back to the HP-41 software library
Go back to the general software library
Go back to the main exhibit hall