Post Reply 
4K HP 67 Games rom attached for testing
11-06-2016, 08:55 PM (This post was last modified: 11-06-2016 09:12 PM by Dieter.)
Post: #101
RE: 4K HP 67 Games rom attached for testing
(11-06-2016 08:43 PM)Gene Wrote:  Gene: Well, the instructions should say to input a decimal seed between 0 and 1 that is six digits or more long. Anyone who inputs 1 E-20 as a seed deserves to have a bad game. :-)

As long as someone puts in a positive seed 0-1 with six digits it ought to be ok.

Let's play safe here. I just read the comment on the 997-generator in the HP67/97 Standard Pac regarding suitable seeds. It says that seed*1E+7 should not be divisible by 2 or 5. So the 7th digit shoud be 1, 3, 7 or 9. This could be easily implemented:

Code:
LBL "S"
RCL 00
"SEED?"
PROMPT
ABS
FRC
9
*
1
+
E5
*
INT
.7
+
E6
/
STO 00
END

This makes sure the initial seed is > 0,1 and ends with a 7. The subsequent random numbers seem to end with a 1, 3, 7 or 9 as well.
Yes, this might be a good solution so that we can safely use the short and fast 997 algorithm.

(11-06-2016 08:43 PM)Gene Wrote:  In your updated games, are you able to actually insert the proper XROMs into the listings ?

If you want to I can do this. At the moment it's just "XEQ R" and "XEQ S". But this can easily be changed with a simple "search and replace".

Dieter
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
HP-67 AOS program to debug - Gene - 10-30-2016, 02:11 AM
RE: 4K HP 67 Games rom attached for testing - Dieter - 11-06-2016 08:55 PM



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