User Tools

Site Tools


base:16bit_xorshift_random_generator

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revisionBoth sides next revision
base:16bit_xorshift_random_generator [2019-05-10 02:37] vsariolabase:16bit_xorshift_random_generator [2019-05-10 02:45] vsariola
Line 40: Line 40:
         ROR             ; A has now x >> 9 and high bit comes from low byte         ROR             ; A has now x >> 9 and high bit comes from low byte
         EOR rng_zp_low         EOR rng_zp_low
-        STA rng_zp_low  ; x ^= x >> 9 done+        STA rng_zp_low  ; x ^= x >> 9 and the low part of x ^= x << 7 done
         EOR rng_zp_high          EOR rng_zp_high 
         STA rng_zp_high ; x ^= x << 8 done         STA rng_zp_high ; x ^= x << 8 done
base/16bit_xorshift_random_generator.txt · Last modified: 2019-08-12 15:41 by ftc