SDSP Benchmark


   ;
   ;   Random number generator including code to test the generator
   ;
   ;
   ;   Hal Carter, 14 Feb 95 Ver. 1.0
   ;   This random number generator is a integer linear-congruential generator with period
   ;   (2**31)-1 as presented in R. Jain, "The Art of Computer Systems Performance
   ;   Analysis, " John Wiley & Sons, pp.  441-444, 1991.
   ;---------------------------------------------------
              org 0
              lmask r0 r0 r0           ; R0 <- 0
              stq  r0 r0 starttrigger  ;monitor address start to start timing monitor
              brg begin              ; jump around data segment
   ;
   ;--------- constants and data areas for
   ;--------- testing the generator
   ;
          list : res 100             ; list of random numbers
       counter : data 100
    starttrigger : res 1
   donetrigger : res 1