Groups | Search | Server Info | Login | Register


Groups > comp.sys.apple2.programmer > #6322

Re: Linear Feedback Shift Register

From John Ames <commodorejohn@gmail.com>
Newsgroups comp.sys.apple2.programmer
Subject Re: Linear Feedback Shift Register
Date 2025-01-16 09:36 -0800
Organization A noiseless patient Spider
Message-ID <20250116093643.000060f3@gmail.com> (permalink)
References <vbb26i$1tf0$1@dont-email.me>

Show all headers | View raw


On Wed, 4 Sep 2024 21:39:53 -0400
Duhast <duhast@123gmail.com> wrote:

> Pasted them into a spreadsheet and sorted.  It doesn't work.  There
> are missing numbers, duplicate numbers.  What am I doing wrong?  Is
> there a better method?

Punching the assembler snippet into a simulator, it runs as expected,
generating a pseudo-random number sequence that doesn't repeat the seed
until the 255th byte - so, allowing for the 8192-vs.8196 issue that's
already been covered, the problem must be somewhere else.

(Interesting notion to pre-generate a table of values and cycle through
them; it wouldn't be practical for a larger LFSR size, but for a basic
8-bit one it's certainly a nice way to get fast random numbers!)

Back to comp.sys.apple2.programmer | Previous | NextPrevious in thread | Next in thread | Find similar


Thread

Linear Feedback Shift Register Duhast <duhast@123gmail.com> - 2024-09-04 21:39 -0400
  Re: Linear Feedback Shift Register kegs@provalid.com (Kent Dickey) - 2024-09-05 20:13 +0000
    Re: Linear Feedback Shift Register Duhast <duhast@123gmail.com> - 2024-09-10 22:54 -0400
      Re: Linear Feedback Shift Register kegs@provalid.com (Kent Dickey) - 2024-09-12 03:58 +0000
        Re: Linear Feedback Shift Register Duhast <duhast@123gmail.com> - 2024-09-12 19:06 -0400
          Re: Linear Feedback Shift Register D Finnigan <dog_cow@macgui.com> - 2024-09-13 00:49 +0000
  Re: Linear Feedback Shift Register John Ames <commodorejohn@gmail.com> - 2025-01-16 09:36 -0800
    Re: Linear Feedback Shift Register Peter Ferrie <peter.ferrie@gmail.com> - 2025-01-21 15:46 +0000

csiph-web