User Tools

Site Tools


base:x_abc_random_number_generator_8_16_bit

Differences

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

Link to this comparison view

Next revision
Previous revision
base:x_abc_random_number_generator_8_16_bit [2021-11-12 01:38]
wil created X ABC Algorithm Random Number Generator
base:x_abc_random_number_generator_8_16_bit [2021-11-12 13:00]
wil
Line 14: Line 14:
 {{ :base:rand_x_abc.png?nolink&400 |}} {{ :base:rand_x_abc.png?nolink&400 |}}
  
-<code asm>+<code>
 ;; X ABC Algorithm Random Number Generator for 8-Bit Devices ;; X ABC Algorithm Random Number Generator for 8-Bit Devices
 ;; ;;
Line 21: Line 21:
 ;; Implementation and test: Wil ;; Implementation and test: Wil
 ;; This version stores the seed as arguments and uses self-modifying code ;; This version stores the seed as arguments and uses self-modifying code
-;; Routine requires 50 cycles / 28 bytes+;; Routine requires 38 cycles (without the rts) / 28 bytes
 ;; Return values are in A and, if a 16 bit value is needed also in _rand8_highbyte ;; Return values are in A and, if a 16 bit value is needed also in _rand8_highbyte
  
base/x_abc_random_number_generator_8_16_bit.txt ยท Last modified: 2021-11-12 13:00 by wil