News for hackers. Stuff that matters.
Re:LFSR CPU Running Forth by jsd1982 on Monday June 02, 2025 @12:13PM (#44160327)
Wouldn't this make it somewhat more challenging for assemblers/compilers to emit branch instructions with target PC offsets?

For instance, the offset of an instruction two instructions away would be calculated as `lfsr(lfsr(pc))` (off-by-one bugs notwithstanding), right?

Re:LFSR CPU Running Forth by anthk on Monday June 02, 2025 @12:38PM (#44160592)
If the PC offsets are non-repeating, you would just create a table from a known start. Kinda like Ouruborus, or the Humming distance between vertexes in a cube without repeating.