This program is Copyright © HP and is used here by permission. It was originally printed in the Games Pac. This program was uploaded by Chris Johnson.
This program is supplied without representation or warranty of any kind. Chris Johnson, 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
LINE KEYS 01 LBL "SWAR" 02 14 03 XEQ "SIZE?" 04 FC?C 25 05 PROMPT 06 XEQ "INI" 07 STO 00 08 LBL A 09 SF 21 10 FIX 00 11 CF 29 12 CF 00 13 CF 05 14 CF 06 15 CF 07 16 CF 08 17 SF 27 18 CF 09 19 0 20 STO 05 21 6 22 STO 12 23 5 E2 24 STO 13 25 "GROUPS ?" 26 PROMPT 27 STO 07 28 13.013 29 + 30 STO 08 31 STO 10 32 "ALGLOGS PER?" 33 PROMPT 34 STO 06 35 X<> 07 36 ST* 07 37 RCL 07 38 + 39 14 40 + 41 XEQ "SIZE?" 42 FC?C 25 43 PROMPT 44 RCL 08 45 INT 46 RCL X 47 1 E3 48 / 49 + 50 STO 09 51 LBL 14 52 RCL 09 53 100 54 XEQ "RNDMW" 55 10 56 / 57 GTO 05 58 LBL 13 59 RCL IND Y 60 X=Y? 61 GTO 14 62 RDN 63 LBL 05 64 X=0? 65 GTO 14 66 ISG Y 67 GTO 13 68 STO IND 10 69 DSE 10 70 GTO 14 71 3 72 SF 09 73 XEQ 12 74 RCL 08 75 INT 76 RCL X 77 1 E3 78 / 79 RCL 07 80 + 81 + 82 LBL 12 83 100 84 XEQ "RNDMW" 85 10 86 / 87 STO IND Y 88 RDN 89 DSE X 90 GTO 12 91 FS?C 09 92 RTN 93 GTO B 94 LBL 51 95 "ORDERS" 96 PROMPT 97 GTO 51 98 LBL D 99 SF 21 100 LBL 52 101 RCL 08 102 STO 10 103 LBL 11 104 RCL 01 105 INT 106 LASTX 107 FRC 108 RCL IND 10 109 FS? 07 110 ABS 111 FRC 112 LASTX 113 INT 114 RDN 115 - 116 10 117 * 118 X^2 119 RDN 120 - 121 X^2 122 R^ 123 + 124 SQRT 125 2 126 FS? 08 127 ST/ X 128 FS?C 07 129 RTN 130 X<=Y? 131 GTO 11 132 SF 06 133 FS?C 08 134 RTN 135 "ENEMY QD " 136 RCL IND 10 137 10 138 * 139 ARCL X 140 AVIEW 141 LBL 11 142 DSE 10 143 GTO 11 144 FS?C 08 145 RTN 146 RCL 03 147 X<0? 148 GTO 05 149 14 150 STO 10 151 SF 07 152 XEQ 11 153 X<=Y? 154 GTO 05 155 SF 06 156 "BASE QD " 157 RCL 14 158 10 159 * 160 ABS 161 ARCL X 162 AVIEW 163 FS? 00 164 GTO 50 165 LBL 05 166 "CLEAR" 167 FC?C 06 168 AVIEW 169 GTO 51 170 LBL I 171 SF 21 172 FS? 00 173 SF 09 174 SF 08 175 XEQ 52 176 FC?C 06 177 GTO 05 178 RCL 08 179 INT 180 1 181 + 182 RCL 10 183 INT 184 STO 04 185 14 186 - 187 RCL 06 188 * 189 + 190 RCL X 191 RCL 06 192 1 193 - 194 + 195 1 E3 196 / 197 + 198 STO 09 199 STO 11 200 LBL 10 201 RCL IND 11 202 X<0? 203 GTO 10 204 "CONTACT MADE" 205 FC? 00 206 AVIEW 207 SF 00 208 SF 06 209 10 210 * 211 "ALGLOG SC " 212 ARCL X 213 AVIEW 214 LBL 10 215 ISG 11 216 GTO 10 217 LBL 05 218 RCL 01 219 RCL 14 220 ABS 221 X#Y? 222 GTO 05 223 RCL 03 224 SF 06 225 "BASE SC " 226 10 227 * 228 ARCL X 229 AVIEW 230 LBL 05 231 "CLEAR" 232 FC?C 06 233 AVIEW 234 FS?C 09 235 GTO 50 236 GTO 51 237 LBL J 238 SF 21 239 RCL 13 240 "ENERGY" 241 X=0? 242 GTO 07 243 X>Y? 244 X<>Y 245 ST- 13 246 SF 09 247 10 248 / 249 STO 10 250 GTO 05 251 LBL 07 252 " GONE" 253 AVIEW 254 GTO 51 255 LBL E 256 SF 21 257 STO 10 258 RCL 12 259 "TORPS " 260 X=0? 261 GTO 07 262 1 263 ST- 12 264 CF 09 265 LBL 05 266 "MISS" 267 FC? 00 268 GTO 05 269 RCL 09 270 STO 11 271 LBL 09 272 RCL IND 11 273 X<0? 274 GTO 09 275 INT 276 LASTX 277 FRC 278 RCL 02 279 INT 280 ST- Z 281 X<> L 282 FRC 283 - 284 10 285 * 286 R-P 287 FC? 09 288 RDN 289 RCL 10 290 - 291 0 292 FS? 09 293 GTO 06 294 CLX 295 1 296 P-R 297 R-P 298 RDN 299 ABS 300 5 301 LBL 06 302 FC? 06 303 X<Y? 304 SF 07 305 FC? 06 306 X<Y? 307 GTO 09 308 SF 06 309 "HIT" 310 TONE 08 311 TONE 09 312 AVIEW 313 -1 314 STO IND 11 315 LBL 09 316 ISG 11 317 GTO 09 318 -1 319 FC? 07 320 ST* IND 04 321 FC?C 07 322 CF 00 323 FC? 06 324 TONE 05 325 FC? 06 326 TONE 04 327 FC?C 06 328 GTO 05 329 CLA 330 RCL 07 331 + 332 ARCL X 333 " LEFT" 334 DSE 07 335 GTO 05 336 AVIEW 337 TONE 08 338 TONE 09 339 "YOURE A HERO" 340 PROMPT 341 GTO A 342 LBL H 343 SF 21 344 RCL 14 345 ABS 346 RCL 01 347 " NOT DONE" 348 X#Y? 349 GTO 05 350 RCL 02 351 INT 352 RCL 03 353 INT 354 - 355 X^2 356 RCL 02 357 FRC 358 RCL 03 359 FRC 360 - 361 10 362 * 363 X^2 364 + 365 SQRT 366 2 367 X<=Y? 368 GTO 05 369 RCL 05 370 INT 371 STO 05 372 6 373 STO 12 374 500 375 STO 13 376 ASHF 377 LBL 05 378 CF 09 379 AVIEW 380 FS? 00 381 GTO 50 382 GTO 51 383 LBL C 384 SF 21 385 CF 00 386 INT 387 ST+ 05 388 RDN 389 LASTX 390 P-R 391 RCL 02 392 FRC 393 + 394 RCL 01 395 FRC 396 10 397 STO 10 398 * 399 + 400 X<>Y 401 RCL 01 402 INT 403 + 404 RCL 02 405 INT 406 RCL 10 407 / 408 + 409 FIX 01 410 RND 411 INT 412 STO 01 413 LASTX 414 FRC 415 RCL 10 416 * 417 STO 02 418 R^ 419 RND 420 FIX 00 421 FRC 422 ST+ 02 423 LASTX 424 INT 425 RCL 10 426 / 427 ST+ 01 428 GTO 05 429 LBL B 430 SF 21 431 CLA 432 ARCL 05 433 " DAYS OUT" 434 AVIEW 435 XEQ 53 436 FS? 05 437 RTN 438 AVIEW 439 "TORPS " 440 ARCL 12 441 AVIEW 442 "ENERGY " 443 ARCL 13 444 AVIEW 445 "ALGLOGS " 446 ARCL 07 447 AVIEW 448 LBL G 449 SF 21 450 LBL 05 451 "QD " 452 RCL 01 453 10 454 * 455 ARCL X 456 " SC " 457 RCL 02 458 LASTX 459 * 460 ARCL X 461 AVIEW 462 GTO 51 463 LBL 53 464 RCL 05 465 FRC 466 10 467 * 468 GTO IND X 469 LBL 00 470 "NO" 471 GTO 05 472 LBL 01 473 "MINOR" 474 GTO 05 475 LBL 02 476 "SHIELDS GONE" 477 RTN 478 LBL 03 479 "MAJOR" 480 LBL 05 481 " DAMAGE" 482 RTN 483 LBL 04 484 SF 05 485 "DESTROYED" 486 XEQ "BOOM" 487 AVIEW 488 RTN 489 LBL 50 490 3 491 XEQ "RNDMW" 492 "ALGLOG " 493 X=0? 494 GTO 05 495 "FIRES" 496 TONE 06 497 AVIEW 498 2 499 XEQ "RNDMW" 500 "MISS" 501 X#0? 502 GTO 47 503 TONE 08 504 TONE 09 505 GTO 06 506 LBL 47 507 "HIT" 508 TONE 05 509 TONE 04 510 AVIEW 511 .1 512 ST+ 05 513 XEQ 53 514 FC? 05 515 GTO 06 516 "YOURE FIRED" 517 PROMPT 518 GTO A 519 LBL 05 520 RCL 06 521 XEQ "RNDMW" 522 RCL 09 523 + 524 RCL IND X 525 X<0? 526 GTO 51 527 "MOVES" 528 RDN 529 100 530 XEQ "RNDMW" 531 10 532 / 533 STO IND Y 534 LBL 06 535 AVIEW 536 GTO 51 537 LBL "INI" 538 SF 21 539 DEG 540 "SEED ?" 541 PROMPT 542 SIN 543 ABS 544 RTN 545 LBL "RNDM" 546 RCL 00 547 9821 548 * 549 211327 550 + 551 FRC 552 STO 00 553 RTN 554 LBL "RNDMW" 555 XEQ "RNDM" 556 * 557 INT 558 RTN 559 LBL "SIZE?" 560 FIX 00 561 "SIZE>=" 562 ARCL X 563 1 564 - 565 SF 25 566 RCL IND X 567 RTN 568 LBL "BOOM" 569 TONE 05 570 TONE 05 571 TONE 05 572 TONE 04 573 RTN 574 END
Go back to the HP-41 software library
Go back to the general software library
Go
back to the main exhibit hall