COMPUTER ARCHITECTURE
Spring Semester 2001

COMPUTER ARCHITECTURE - Spring 2001 Programming Assignments

  1. ASSEMBLY PROGRAM #2: RANDOM NUMBER GENERATION
    Develop a routine in SPIM assembly language that will generate a uniform stream of
    pseudo-random integers. The algorithm should use a congruential approach that will
    be described in class. Display frequency distribution statistics for several run s
    and different initial seeds in order to demonstrate the desired uniform random
    number distribution of the assembly module. Try to use all of the following
    addressing techniques in your program: Immediate Addressing, Direct Addressing,
    Indexed Addressing, and Indirect Addressing.