Raw files for these HP 67 program listings ?
08-31-2016, 01:31 PM (This post was last modified: 08-31-2016 01:49 PM by Dieter.)
Post: #3
 Dieter Senior Member Posts: 2,397 Joined: Dec 2013
RE: Raw files for these HP 67 program listings ?
(08-30-2016 06:13 PM)Gene Wrote:  Looking for some help. Angel has agreed (given in) to the creation of an HP 67/97 game rom. Yay. Haha. The idea here was to have available on the 41CL and Emulators some games for the hP 67/97 that are not available in the same way directly on the HP 41. It also gives possible access to some very good USER written games such as the ones below in addition to the HP 67 solution books.

I do not think that translating HP67/97 programs 1:1 for the HP41 is a good idea. This is especially true for games – the 41 allows much better programs due to its alpha input/output, and many things can be done much more elegantly.

Consider the Jive Turkey example. It's an HP67/97 translation of a TI58/59 program that uses a rather complicated random number generator (looks like the one from the ML-01 module) and generates output that is not always unambiguous – cf. the instructions on the linked website with the program. It also uses a strange flag technique to generate a misleading (=wrong) output if it decides to lie to the user. Also all (well, most) data memory is cleared. Which is less of a problem with the 67/97 (turn it off and everything is lost anyway) than on an HP41 with its continuous memory.

Compare this to a more compact program that uses the HP41's features. The following code was written in 15 minutes, so there may be errors, but you get the idea:

Code:
LBL "JT" 100 "TRUTH%=?" PROMPT 1 % STO 03 999 "MAX. NUMBER?" PROMPT ABS INT STO 02 XEQ 99 * 1 + INT STO 01 CLX STO 00 "GUESS?" LBL 01 PROMPT ISG 00 ENTER RCL 01 - X=0? GTO 02 SIGN RCL 03 XEQ 99 - SIGN * "HIGH" X<0? "LOW" GTO 01 LBL 99 RCL 04 PI + X^2 FRC STO 04 RTN LBL 02 RCL 00 FIX 0 CF 29 " " ARCL 00 FIX 4 SF 29 "├ GUESSES" AVIEW BEEP END

Usage:

Code:
Before the first usage it is recommended to store a random seed (positive number with fractional part) in R04: e.g. 0.1234 STO 04 [XEQ] "JT"    TRUTH%=? Enter percentage of true answers. No entry sets this to 100%, i.e. all answers are correct Which means it's a simple Hi-Lo-Game. 70 [R/S]           MAX. NUMBER? Enter max. number to guess Default value is nmax = 999 100 [R/S]          GUESS? Now enter your guesses: 50  [R/S]          LOW 80  [R/S]          LOW   ' here the program is cheating, actually 80 is high 80  [R/S]          HIGH  ' same input this time yields the true answer 70  [R/S]          HIGH 65  [R/S]          LOW 67  [R/S]          6 GUESSES

The program takes advantage of input prompts and alpha output, it uses the signum function to generate the high/low output and change it if it decides to cheat, and the max. number to guess can be specified by the user. There's no need to initialize any flags (the program doesn't use any), and no HP67/97 commands like ISZ(i) are required. All this is done in less steps than the original version.

Dieter
 « Next Oldest | Next Newest »

 Messages In This Thread Raw files for these HP 67 program listings ? - Gene - 08-30-2016, 06:13 PM RE: Raw files for these HP 67 program listings ? - Gene - 08-30-2016, 11:18 PM RE: Raw files for these HP 67 program listings ? - Dieter - 08-31-2016 01:31 PM RE: Raw files for these HP 67 program listings ? - Gene - 08-31-2016, 04:08 PM RE: Raw files for these HP 67 program listings ? - Dieter - 09-01-2016, 12:50 PM RE: Raw files for these HP 67 program listings ? - Gene - 09-02-2016, 03:46 PM RE: Raw files for these HP 67 program listings ? - Dieter - 09-02-2016, 06:28 PM RE: Raw files for these HP 67 program listings ? - RobertM - 08-31-2016, 05:01 PM RE: Raw files for these HP 67 program listings ? - Dieter - 08-31-2016, 06:47 PM RE: Raw files for these HP 67 program listings ? - Gene - 08-31-2016, 06:52 PM RE: Raw files for these HP 67 program listings ? - RobertM - 09-01-2016, 01:57 AM RE: Raw files for these HP 67 program listings ? - Dieter - 09-01-2016, 12:10 PM RE: Raw files for these HP 67 program listings ? - Gene - 09-01-2016, 01:21 PM RE: Raw files for these HP 67 program listings ? - RobertM - 09-02-2016, 04:13 AM RE: Raw files for these HP 67 program listings ? - Dieter - 09-02-2016, 06:47 AM RE: Raw files for these HP 67 program listings ? - RobertM - 09-02-2016, 02:44 PM RE: Raw files for these HP 67 program listings ? - RobertM - 09-02-2016, 04:56 PM RE: Raw files for these HP 67 program listings ? - hth - 09-02-2016, 05:44 PM RE: Raw files for these HP 67 program listings ? - RobertM - 09-03-2016, 10:12 PM RE: Raw files for these HP 67 program listings ? - Ángel Martin - 09-04-2016, 08:00 AM RE: Raw files for these HP 67 program listings ? - Gene - 09-04-2016, 10:21 PM RE: Raw files for these HP 67 program listings ? - RobertM - 09-04-2016, 02:42 PM RE: Raw files for these HP 67 program listings ? - Dieter - 09-05-2016, 06:06 AM RE: Raw files for these HP 67 program listings ? - Ángel Martin - 09-05-2016, 07:55 AM RE: Raw files for these HP 67 program listings ? - Ángel Martin - 09-05-2016, 05:17 AM RE: Raw files for these HP 67 program listings ? - Gene - 09-05-2016, 12:27 PM RE: Raw files for these HP 67 program listings ? - RobertM - 09-05-2016, 04:26 PM RE: Raw files for these HP 67 program listings ? - Dieter - 09-05-2016, 07:33 PM RE: Raw files for these HP 67 program listings ? - RobertM - 09-06-2016, 10:35 PM RE: Raw files for these HP 67 program listings ? - Dieter - 09-06-2016, 10:59 PM RE: Raw files for these HP 67 program listings ? - RobertM - 09-07-2016, 04:11 AM RE: Raw files for these HP 67 program listings ? - Ángel Martin - 09-07-2016, 05:16 AM RE: Raw files for these HP 67 program listings ? - Dieter - 09-07-2016, 01:54 PM RE: Raw files for these HP 67 program listings ? - RobertM - 09-07-2016, 02:22 PM RE: Raw files for these HP 67 program listings ? - Dieter - 09-07-2016, 06:51 PM RE: Raw files for these HP 67 program listings ? - Ángel Martin - 09-07-2016, 02:29 PM RE: Raw files for these HP 67 program listings ? - Dieter - 09-07-2016, 08:42 PM RE: Raw files for these HP 67 program listings ? - Dieter - 09-06-2016, 10:48 PM RE: Raw files for these HP 67 program listings ? - Ángel Martin - 09-05-2016, 04:51 PM RE: Raw files for these HP 67 program listings ? - Dieter - 09-12-2016, 07:01 PM RE: Raw files for these HP 67 program listings ? - RobertM - 09-05-2016, 06:21 PM RE: Raw files for these HP 67 program listings ? - Ángel Martin - 09-05-2016, 06:34 PM RE: Raw files for these HP 67 program listings ? - RobertM - 09-05-2016, 06:49 PM RE: Raw files for these HP 67 program listings ? - Ángel Martin - 09-05-2016, 07:23 PM RE: Raw files for these HP 67 program listings ? - Gene - 09-05-2016, 08:11 PM RE: Raw files for these HP 67 program listings ? - rprosperi - 09-05-2016, 09:09 PM RE: Raw files for these HP 67 program listings ? - Gene - 09-05-2016, 09:22 PM RE: Raw files for these HP 67 program listings ? - Gene - 09-05-2016, 09:38 PM RE: Raw files for these HP 67 program listings ? - Gene - 09-05-2016, 09:41 PM RE: Raw files for these HP 67 program listings ? - Ángel Martin - 09-06-2016, 05:07 AM RE: Raw files for these HP 67 program listings ? - Gene - 09-07-2016, 02:41 PM RE: Raw files for these HP 67 program listings ? - rprosperi - 09-07-2016, 04:44 PM RE: Raw files for these HP 67 program listings ? - Gene - 09-07-2016, 07:24 PM RE: Raw files for these HP 67 program listings ? - Dieter - 09-07-2016, 08:38 PM RE: Raw files for these HP 67 program listings ? - Gene - 09-07-2016, 09:29 PM RE: Raw files for these HP 67 program listings ? - Ángel Martin - 09-08-2016, 07:28 AM RE: Raw files for these HP 67 program listings ? - Gene - 09-07-2016, 09:56 PM RE: Raw files for these HP 67 program listings ? - Dieter - 09-08-2016, 06:23 AM RE: Raw files for these HP 67 program listings ? - RobertM - 09-07-2016, 11:40 PM RE: Raw files for these HP 67 program listings ? - Gene - 09-07-2016, 11:45 PM RE: Raw files for these HP 67 program listings ? - RobertM - 09-07-2016, 11:51 PM RE: Raw files for these HP 67 program listings ? - Gene - 09-08-2016, 01:00 PM RE: Raw files for these HP 67 program listings ? - Dieter - 09-11-2016, 06:34 PM RE: Raw files for these HP 67 program listings ? - Dieter - 09-08-2016, 06:39 PM RE: Raw files for these HP 67 program listings ? - Gene - 09-08-2016, 07:04 PM RE: Raw files for these HP 67 program listings ? - Dieter - 09-08-2016, 10:18 PM RE: Raw files for these HP 67 program listings ? - Gene - 09-09-2016, 02:56 AM RE: Raw files for these HP 67 program listings ? - Dieter - 09-09-2016, 12:18 PM RE: Raw files for these HP 67 program listings ? - Gene - 09-09-2016, 12:35 PM RE: Raw files for these HP 67 program listings ? - Dieter - 09-09-2016, 01:47 PM RE: Raw files for these HP 67 program listings ? - Dieter - 09-09-2016, 10:04 PM RE: Raw files for these HP 67 program listings ? - Gene - 09-09-2016, 05:29 PM RE: Raw files for these HP 67 program listings ? - Dieter - 09-09-2016, 06:54 PM RE: Raw files for these HP 67 program listings ? - Dieter - 09-11-2016, 09:05 PM RE: Raw files for these HP 67 program listings ? - RobertM - 09-10-2016, 03:02 AM RE: Raw files for these HP 67 program listings ? - Ángel Martin - 09-11-2016, 06:47 AM RE: Raw files for these HP 67 program listings ? - Gene - 09-12-2016, 08:16 PM RE: Raw files for these HP 67 program listings ? - Dieter - 09-12-2016, 08:51 PM RE: Raw files for these HP 67 program listings ? - Gene - 09-12-2016, 11:48 PM RE: Raw files for these HP 67 program listings ? - Dieter - 09-13-2016, 08:33 PM RE: Raw files for these HP 67 program listings ? - RobertM - 09-23-2016, 01:53 AM RE: Raw files for these HP 67 program listings ? - Gene - 09-23-2016, 03:11 AM RE: Raw files for these HP 67 program listings ? - RobertM - 09-23-2016, 04:30 PM RE: Raw files for these HP 67 program listings ? - Gene - 09-23-2016, 05:07 PM RE: Raw files for these HP 67 program listings ? - RobertM - 09-26-2016, 04:06 AM RE: Raw files for these HP 67 program listings ? - Gene - 09-26-2016, 03:32 PM RE: Raw files for these HP 67 program listings ? - RobertM - 09-28-2016, 08:07 PM RE: Raw files for these HP 67 program listings ? - Gene - 09-28-2016, 08:10 PM RE: Raw files for these HP 67 program listings ? - RobertM - 09-28-2016, 09:00 PM RE: Raw files for these HP 67 program listings ? - Gene - 09-28-2016, 09:18 PM RE: Raw files for these HP 67 program listings ? - RobertM - 10-05-2016, 06:00 PM RE: Raw files for these HP 67 program listings ? - Gene - 10-18-2016, 06:33 PM RE: Raw files for these HP 67 program listings ? - Gene - 10-18-2016, 06:47 PM RE: Raw files for these HP 67 program listings ? - hth - 10-18-2016, 11:39 PM RE: Raw files for these HP 67 program listings ? - Ángel Martin - 10-19-2016, 05:36 AM RE: Raw files for these HP 67 program listings ? - hth - 10-19-2016, 06:08 AM RE: Raw files for these HP 67 program listings ? - Gene - 10-19-2016, 12:09 PM

User(s) browsing this thread: 1 Guest(s)