home.social

#lfsr — Public Fediverse posts

Live and recent posts from across the Fediverse tagged #lfsr, aggregated by home.social.

  1. Last night fixed a bug in my LFSR (Linear-Feedback Shift Register) implementation on the Z80, which was due to a misunderstanding of the difference between the Rotate Right instructions RRC L and RR L. They both use the Carry flag: RR is a 9-bit rotation using the Carry; RRC is a _circular_ rotation, which apparently means the Carry does not participate in the rotation and is a copy of the result's top-bit. I had forgotten and misread my quickref. I thought RRC would be Rotate Right with Carry. Haha, no.

    #Z80 #LFSR

  2. I added a random number generator (a LFSR using polynomial for n=16 from XAPP052) and a subroutine for PRINT AT to my ZX81 "game".

    #zx81 #rng #lfsr

  3. it's an analog shift register with two feedback paths. each stage is made of one transistor, one capacitor, one resistor and a LED. the feedback is comparable to a #LFSR

  4. I'm currently trying to decode the bitstream of the Traktor Timecode MK2. Interestingly nobody figured it out completely yet. It seems like the bits are encoded through the y offset. Wrote some toy code to detect this and push the bits to a ringbuffer. Buuuut I'm getting state duplications which shouldn't be possible?

    Maybe someone is experienced with reverse engineering bitstreams 👼?

    codeberg.org/obsoleszenz/libdv

    #timecode #dvs #bitstream #hacking #lfsr #xwax #dj

  5. I'm currently trying to decode the bitstream of the Traktor Timecode MK2. Interestingly nobody figured it out completely yet. It seems like the bits are encoded through the y offset. Wrote some toy code to detect this and push the bits to a ringbuffer. Buuuut I'm getting state duplications which shouldn't be possible?

    Maybe someone is experienced with reverse engineering bitstreams 👼?

    codeberg.org/obsoleszenz/libdv

    #timecode #dvs #bitstream #hacking #lfsr #xwax #dj

  6. I'm currently trying to decode the bitstream of the Traktor Timecode MK2. Interestingly nobody figured it out completely yet. It seems like the bits are encoded through the y offset. Wrote some toy code to detect this and push the bits to a ringbuffer. Buuuut I'm getting state duplications which shouldn't be possible?

    Maybe someone is experienced with reverse engineering bitstreams 👼?

    codeberg.org/obsoleszenz/libdv

    #timecode #dvs #bitstream #hacking #lfsr #xwax #dj

  7. I'm currently trying to decode the bitstream of the Traktor Timecode MK2. Interestingly nobody figured it out completely yet. It seems like the bits are encoded through the y offset. Wrote some toy code to detect this and push the bits to a ringbuffer. Buuuut I'm getting state duplications which shouldn't be possible?

    Maybe someone is experienced with reverse engineering bitstreams 👼?

    codeberg.org/obsoleszenz/libdv

    #timecode #dvs #bitstream #hacking #lfsr #xwax #dj

  8. How the classic game Pitfall! stored its room data in 1 byte... and how they didn't store the map at all (except in code)!

    #retrogaming #lfsr #proceduralgeneration #programming

    evoniuk.github.io/posts/pitfal

  9. CW: Maths, polynomials, random numbers

    Challenge: Given a 33 bit shift register based random number generator, shifting 32 times to make a random integer, we observe that a given value will always appear twice in the sequence. Generally unevenly spaced. How to find a value which has the closest repeat?

    We could run for 2^33 iterations and keep a record in a many gigabyte array, but I imagine there's a better way.

    Boosts OK!

    @ColinTheMathmo

    #math #maths #polynomials #lfsr #prng #pseudorandom

  10. Monochrome LCD Video Hacks Galore! - [Wenting Zhang] is clearly a fan of old school STN LCD displays, and was wondering... - hackaday.com/2022/05/12/monoch #errordiffusion #videohacks #dithering #lfsr #lcd #pdm #pwm