commit f4e9e2e915d76d5ca8fc63284ab077e27347edf9
parent 4b5c26c6caaca53c338b452efc3cf2bcefc932c3
Author: Andrew Alderwick <andrew@alderwick.co.uk>
Date: Wed, 25 Aug 2021 21:08:30 +0100
Added credit for PRNG
Diffstat:
1 file changed, 3 insertions(+), 0 deletions(-)
diff --git a/projects/examples/demos/prng.tal b/projects/examples/demos/prng.tal
@@ -1,5 +1,8 @@
( pseudo-random number generator )
+( based on 16-bit xorshift algorithm discussed on
+ http://www.retroprogramming.com/2017/07/xorshift-pseudorandom-numbers-in-z80.html )
+
( devices )
|00 @System [ &vector $2 &wst $1 &rst $1 &pad $4 &r $2 &g $2 &b $2 &debug $1 &halt $1 ]