Groups | Search | Server Info | Login | Register
Groups > comp.sys.apple2.programmer > #6319
| From | kegs@provalid.com (Kent Dickey) |
|---|---|
| Newsgroups | comp.sys.apple2.programmer |
| Subject | Re: Linear Feedback Shift Register |
| Date | 2024-09-12 03:58 +0000 |
| Organization | provalid.com |
| Message-ID | <vbtota$2je7$1@dont-email.me> (permalink) |
| References | <vbb26i$1tf0$1@dont-email.me> <vbd3cl$fbuj$1@dont-email.me> <vbr0q9$3ddnt$1@dont-email.me> |
In article <vbr0q9$3ddnt$1@dont-email.me>, Duhast <duhast@123gmail.com> wrote: >On 9/5/2024 4:13 PM, Kent Dickey wrote: > >> You should use PEEK(8192+I). That may be the only problem. >> > >Ok, it was a brain fart of 4096 vs 8192, and that was corrected, but I >still get bad numbers. > >I was running Applewin, and it gives me one set of numbers, with missing >ones and duplicates. I ran it under GSplus, and it gave me different >numbers, but no missing and one duplicate(but I think I know >why(executing loop an extra round)), I then ran it on real //gs hardware >and it matches the GSplus output. > >Shouldn't it always generate the same sequence with the same seed? Does >the EOR function not work right on a 6502 vs 65816, or is Applewin not >right? Your original code didn't initialize RAND to anything. So it may vary between systems. My modified code initialized it to 1. Kent
Back to comp.sys.apple2.programmer | Previous | Next — Previous in thread | Next in thread | Find similar
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