Assignment 3

Home

SCRAM and RAL

Related Reading: Omnibus Chapters 48 and 17.

Due:  Midnight Friday Feb 8, 2008

  1. Do exercise 48.1 in the text, except only do STA and STI (and your circuits do not have to be implemented in Haskell; just draw them).
     
  2. Write a RAL program to add together all of the elements in an array whose elements are stored in memory between locations "lo" and "hi-1" (inclusive).  Thus there are a total of (hi-lo) elements.  Do not worry about overflow, and assume that the memory is unlimited in size and contains whatever constants you need for use by the program.  Also assume that the program and data are in different memories, as is implicitly done in Chapter 17.

    To test your program, I will provide you with a RAL interpreter written in Haskell.  Please provide a transcript showing the proper execution of your program.