Post Reply 
(16C) Linear Feedback Shift Registers
07-02-2021, 06:30 AM
Post: #5
RE: (16C) Linear Feedback Shift Registers
okay so pwarden42 in the mirror post I posted on the swissmicros forums had some super cool ideas for better "get bit" subroutines, right? and like...here, I'll let him explain:

pwarden42 Wrote:For the "get bit" routine I would probably use masking instead of branching, something like:
[g][LBL] B
[RRn]
1
[f][AND]
[RTN]

If you really wanted to use branching, you could use the carry flag:
[g][LBL] B
[g][CF] 4
[f][B?]
[g][SF] 4
0
[g][RLC]
[RTN]

I got *really* excited about these. so excited I wrote 8 more stupid freaking pages in that big pdf thing. it's honestly a small book now. I have no idea what to do with it. whatever. if you're looking for the new addendum, it starts on page 63.


Attached File(s)
.pdf  HP16C_LFSR_plus.pdf (Size: 193.83 KB / Downloads: 13)
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
RE: (16C) Linear Feedback Shift Registers - badacktor - 07-02-2021 06:30 AM



User(s) browsing this thread: 1 Guest(s)