Post Reply 
4K HP 67 Games rom attached for testing
11-11-2016, 07:17 AM (This post was last modified: 11-11-2016 07:44 AM by Dieter.)
Post: #115
RE: 4K HP 67 Games rom attached for testing
(11-10-2016 10:31 PM)Gene Wrote:  Testing? I would test with an XEQ R and XEQ S inserted calling a random number and seed routine in ram. Then, the XROM is put in place for versions to send over for rom creation.

OK then. I think I will post the first package this weekend.

(11-10-2016 10:31 PM)Gene Wrote:  Given the complexity of the S routine to use the 997, I think the 9821 generator is looking better all the time. It passes all the tests, it has been used for 30 years plus, it's not *that* large compared to space used in the S routine, etc. and it works with an input seed of 0.

The only problem is speed. Due to two numeric constants the 9821 generator is slow. It would perform much better if the two parameters were recalled from a register, but this is not an option here. I did a test on V41 with 100 random numbers and it turned out that the 9821 generator required about 70% more time than the 997 and (x+pi)³ versions. This is my only concern.

This may be an issue on the "26" game. Here 130 random numbers are generated. I wonder how this was like on the HP67, here one game – essentially watching 13 ten-digit numbers appear on the display – must have taken 5 to 10 minutes. The 41 is much faster, but still... I have been thinking about changing the 13 numbers into something like 5.

BTW I'd recommend an ABS after RCL 00, just to be sure. This applies to all three RNGs we're talking about here.

On the other hand the "complexity of the S routine" is not much of a problem. It's just a few steps and it's called only once on startup. I think we should not drop the 997 generator because of this seed routine.

(11-10-2016 10:31 PM)Gene Wrote:  But I will not pitch a fit if you really want us to use this one. :-)

RCL 00
STO 00

Noone wants to use it that way. Gene, you shouldn't calculate x³ by 3 y^x. Better use something like ENTER x² * or x² LastX *. This even preserves LastX. And on other calculators you can even do x² RCL*L and do it all in one single stack register:

RCL+ 00

STO 00

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-11-2016 07:17 AM

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