This linear-shift feedback register generates the same sequence as the SNES' hardware noise generator, but it runs on the 65c816 instead. This is the sequence it should generate: https://sneslab.net/wiki/S-DSP/Noise/Values Assemble with ca65