The Museum of HP Calculators


Battleship for the HP-41C/CV/CX

This program is Copyright © HP and is used here by permission. It was originally printed in the HP-67 Games 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 "BTLSHP"
 02 LBL 10
 03 LBL A
 04 LOG
 05 FRC
 06  E2
 07 *
 08 STO 03
 09 INT
 10 STO 01
 11 LASTX
 12 FRC
 13  E2
 14 *
 15 ABS
 16 INT
 17 STO 02
 18 RCL 01
 19 INT
 20 STO 01
 21 1111111111
 22 STO 08
 23 8
 24 *
 25 STO 06
 26 16
 27 STO 25
 28 7
 29 STO 07
 30 RCL 08
 31 7
 32 *
 33 STO 05
 34 LBL 02
 35 7DSZ
 36 GTO 06
 37 RCL 08
 38 7PRTX
 39 GTO 09
 40 LBL 06
 41 RCL 25
 42 PSE
 43 CLX
 44 STOP
 45 RCL 02
 46 -
 47 X^2
 48 X<>Y
 49 RCL 01
 50 -
 51 X^2
 52 +
 53 SQRT
 54 PSE
 55 5
 56 X<>Y
 57 X>Y?
 58 GTO 02
 59 1
 60 X<>Y
 61 X<=Y?
 62 GTO 01
 63 1
 64 ST+ 00
 65 4
 66 RCL 00
 67 X>Y?
 68 GTO 03
 69 ST- 07
 70 RCL 07
 71 ST- 01
 72 ST- 02
 73 RCL 01
 74 X<0?
 75 GTO 05
 76 RCL 02
 77 X<0?
 78 GTO 05
 79 GTO 02
 80 LBL 05
 81 RCL 07
 82 2
 83 *
 84 ST+ 01
 85 ST+ 02
 86 GTO 02
 87 LBL 03
 88 RCL 05
 89 7PRTX
 90 GTO 09
 91 LBL 01
 92 RCL 06
 93 7PRTX
 94 LBL 09
 95 CLX
 96 STO 00
 97 RCL 03
 98 PI
 99 *
100 GTO 10
101 RTN
102 STOP
103 END

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