Heaven/TQA Posted November 23, 2001 Share Posted November 23, 2001 hi guys, before i search heavily the net... do you have a working random number generator in assembler for atari 7800 which works and is flexible enough, f.e. i need esp. one for numbers between 0-15... my lovely atari 800 has the adress 53770 where you get a random number between 0-255... Quote Link to comment Share on other sites More sharing options...
Eckhard Stolberg Posted November 23, 2001 Share Posted November 23, 2001 The random number generator in the Atari 800 is located in the POKEY, so if you'd use the Ballblazer board, you would get the same functionality. But the POKEY just provides a part of one of the LSFRs (linear shift feedback register), that is used for generating the sound output, as the random number. So if you search for LSFR on the net, you should find some information about generating pseudo random numbers. On the Stella mailing list this has been discussed several times, including some examples for the VCS. So maybe you should have a look at the archive. But if you just need numbers between 0 and 15, a simple counter between user interactions might be good enough depending on the game you are going to write. Ciao, Eckhard Stolberg Quote Link to comment Share on other sites More sharing options...
Heaven/TQA Posted November 24, 2001 Author Share Posted November 24, 2001 thanks eckhart! found it... so...now the engine could be started... :=) btw. eckhard, one of your hobbies must be definitly coding on 2600 ;=) referring to stella mailing list... Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.