The Museum of HP Calculators


Dec. -> Hex. converter for HP-41C/CV/CX

This program created and uploaded by Russ Gilbert.

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

DH (Decimal to Hexadecimal conversions for the 41c/cv/cx.) Filename 41dechex.raw. XEQ 'DH'. The program prompts for 'Dec. No.'. Enter a decimal number and hit R/S. The decimal number will be displayed when CLX is hit. The hex number can be seen again with 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 for disk or PC HP-IL Card download

Program Listing

LINE  KEYS
 
 01 LBL "DH"
 02 CLA
 03 0
 04 STO 28
 05 "0"
 06 ASTO 10
 07 "1"
 08 ASTO 11
 09 "2"
 10 ASTO 12
 11 "3"
 12 ASTO 13
 13 "4"
 14 ASTO 14
 15 "5"
 16 ASTO 15
 17 "6"
 18 ASTO 16
 19 "7"
 20 ASTO 17
 21 "8"
 22 ASTO 18
 23 "9"
 24 ASTO 19
 25 "A"
 26 ASTO 20
 27 "B"
 28 ASTO 21
 29 "C"
 30 ASTO 22
 31 "D"
 32 ASTO 23
 33 "E"
 34 ASTO 24
 35 "F"
 36 ASTO 25
 37 "DEC. NO.?"
 38 PROMPT
 39 STO 27
 40 STO 09
 41 CLA
 42 1.09951 E12
 43 ENTER
 44 RCL 27
 45 X>Y?
 46 XEQ 04
 47 LBL 01
 48 RCL 27
 49 16
 50 /
 51 STO 26
 52 INT
 53 STO 27
 54 RCL 26
 55 FRC
 56 16
 57 *
 58 STO 26
 59 XEQ 02
 60 RCL 27
 61 ENTER
 62 X=0?
 63 TONE 06
 64 X=0?
 65 XEQ 03
 66 XEQ 01
 67 RTN
 68 LBL 02
 69 10
 70 +
 71 STO 29
 72 CLA
 73 ARCL IND 29
 74 ASTO IND 28
 75 1
 76 ST+ 28
 77 CLA
 78 RTN
 79 LBL 03
 80 1
 81 ST- 28
 82 ARCL IND 28
 83 RCL 28
 84 X=0?
 85 XEQ 05
 86 XEQ 03
 87 LBL 04
 88 "1.099 E12 LIM."
 89 AVIEW
 90 GTO "DH"
 91 LBL 05
 92 AVIEW
 93 RCL 09
 94 PROMPT
 95 GTO "DH"
 96 END

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