Post Reply 
4K HP 67 Games rom attached for testing
11-01-2016, 08:49 PM
Post: #54
RE: 4K HP 67 Games rom attached for testing
The RAND or RNDM (I think I've seen it spelled both ways in different modules) function is used in Angel's Sandmath rom. Taken from his manual:



"It’s a little known fact that the SandMath module also uses a buffer to store the current seedUU used for random number generation. The buffer id# is 9, and it is automatically created by SEEDT or RAND the first time any of them is executed; and subsequently upon start-up by the Module during the initialization steps using the polling points.

SEEDT will take the fractional part of the number in X as seed for RNG, storing it into the buffer. If x=0 then a new seed will taken using the Time Module – really the only real random source within the complete system.

RAND will compute a RNG using the current seed, using the same popular algorithm described in the PPC ROM - and incidentally also used in the CCD module’s function RNG."
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 - Gene - 11-01-2016 08:49 PM



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