Email: Password: Remember Me | Create Account (Free)

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
04/19/05 02:21
Read: times


 
#91881 - Pseudo RNG For Reads51
I modified this from some code using a different compiler found at Programmer's Heaven. Does this look all right for use with the Reads51 compiler?
Thanks!

ORG 0h

RAND8REG EQU 0X20


LCALL RAND8


RAND8: MOV A, RAND8REG
JNZ RAND8B
CPL A
MOV RAND8REG, A

RAND8B: ANL A, #10111000B
MOV A, RAND8REG
RLC A
MOV RAND8REG, A

List of 7 messages in thread
TopicAuthorDate
Pseudo RNG For Reads51            01/01/70 00:00      
   well you could            01/01/70 00:00      
   If my cat could type            01/01/70 00:00      
   feel free            01/01/70 00:00      
   Does your code actually work?            01/01/70 00:00      
      there is a bit missing            01/01/70 00:00      
   a strange compiler            01/01/70 00:00      

Back to Subject List