The Museum of HP Calculators


Chinese Years to/from Gregorian Years for the HP-41C/CV/CX

This program is Copyright © HP and is used here by permission. It was originally printed in the Calendars Solution Book. This program was entered and uploaded by Tony Duell.

This program is supplied without representation or warranty of any kind. Tony Duell, Hewlett Packard and The Museum of HP Calculators therefore assume no responsibility and shall have no liability, consequential or otherwise, of any kind arising from the use of this program material or any part thereof.

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
Download Hexadecimal (.dat) program for Serial Port download

Program Listing

LINE  KEYS
 01 LBL "G-C"
 02 FIX 00
 03 CF 29
 04 CLRG
 05 -3176
 06 STO 01
 07 10
 08 STO 02
 09 12
 10 STO 03
 11 FS?C 05
 12 RTN
 13 "YEAR ?"
 14 PROMPT
 15 RCL 01
 16 -
 17 STO 05
 18 RCL 05
 19 RCL 02
 20 /
 21 INT
 22 RCL 02
 23 *
 24 -
 25 1
 26 +
 27 RCL 05
 28 RCL 05
 29 RCL 03
 30 /
 31 INT
 32 RCL 03
 33 *
 34 -
 35 1
 36 +
 37 "  R:"
 38 ARCL Y
 39 "|-  C:"
 40 ARCL X
 41 AVIEW
 42 STOP
 43 LBL "C-G"
 44 SF 05
 45 XEQ "G-C"
 46 "ROW ?"
 47 PROMPT
 48 STO 06
 49 "COLUMN ?"
 50 PROMPT
 51 X>Y?
 52 XEQ 00
 53 STO 07
 54 RCL 06
 55 RCL 07
 56 -
 57 2
 58 /
 59 STO 08
 60 FRC
 61 0
 62 X#Y?
 63 GTO 01
 64 RCL 08
 65 RCL 03
 66 *
 67 RCL 07
 68 +
 69 1
 70 -
 71 1924
 72 +
 73 VIEW X
 74 SF 29
 75 FIX 04
 76 RTN
 77 LBL C
 78 60
 79 +
 80 RTN
 81 LBL D
 82 60
 83 -
 84 RTN
 85 LBL 00
 86 RCL 03
 87 -
 88 RTN
 89 LBL 01
 90 "ILLEGAL DATE"
 91 AVIEW
 92 STOP
 93 END

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