Post Reply 
4K HP 67 Games rom attached for testing
11-12-2016, 06:52 AM (This post was last modified: 11-12-2016 07:24 AM by Dieter.)
Post: #125
RE: 4K HP 67 Games rom attached for testing
(11-12-2016 02:27 AM)RobertM Wrote:  Writing a buffer based solution would be a lot more work, but a version that uses R00 is pretty simple:

Fine. So let's do it this way.

(11-12-2016 02:27 AM)RobertM Wrote:  Might want to add stack lift handling instead of just overwriting X, but that wouldn't take much either.

Yes, stack lift should be implemented. Not only because it is required by some of the programs.
And do not forget the final ABS. ;-)

BTW, what happens if R00 contains alpha data? Could this be converted to some kind of numeric value?

I wonder if we could squeeze out some more digits if the multiplication is done with 13-digit precision. This does not mean the RNG gets a longer period, it still is 10^6. But I think we should get three more digits if we change the increment to 0,211327003 or 0,211327157 (10^9 times this prime). As far as I understand the theory of linear congruential RNGs (cf. Knuth) this should yield the maximum period, i.e. 10^9.

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-12-2016 06:52 AM



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