Path: csiph.com!news.swapon.de!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail From: D Finnigan Newsgroups: comp.sys.apple2.programmer Subject: Re: Linear Feedback Shift Register Date: Fri, 13 Sep 2024 00:49:35 -0000 (UTC) Organization: Mac GUI Lines: 21 Message-ID: References: MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Injection-Date: Fri, 13 Sep 2024 02:49:35 +0200 (CEST) Injection-Info: dont-email.me; posting-host="338f05c97a3b0f65fb5018c1e020d0dd"; logging-data="546686"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+NV8f+RNJ0ob5H9/BURnsO" User-Agent: Mac GUI Usenet Cancel-Lock: sha1:ADsQ67V7EHLKZqqUvywy2bk15dA= In-Reply-To: Xref: csiph.com comp.sys.apple2.programmer:6321 Duhast wrote: > On 9/11/2024 11:58 PM, Kent Dickey wrote: > >> Your original code didn't initialize RAND to anything. So it may vary >> between systems. My modified code initialized it to 1. >> >> Kent > > In my original code, I DB'd RAND as $01. I'm not great at assembly, but > is that not initializing it? > If your assembler takes DB to mean "define a byte within the assembled object code," then yes. Use the Monitor to check your program after you load it into RAM, but before you execute it, to verify it is $01. -- ]DF$ The New Apple II User's Guide: https://macgui.com/newa2guide/