Jump to content
IGNORED

random generator for a7800


Heaven/TQA

Recommended Posts

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...

Link to comment
Share on other sites

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

Link to comment
Share on other sites

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...