Metropoli BBS
VIEWER: random.asm MODE: TEXT (ASCII)
; From  Michael Delatte  -  Random Numbers

  1st, you have to initialise AX with a value from where ever you want
  2nd, apply this method who make a XOR on each bit of the AX and inject
  the result in the LSB of AX !
  Note that making a XOR on with EACH it of AX is the same as checking
  if there is a odd number of bit to 1 !

        And Ax,Ax
        Jp  lbl1
        stc
        Jmp Lbl2
  lbl1: clc
  Lbl2: rcl Ax,1

[ RETURN TO DIRECTORY ]