CS 2734
Computer Organization II
Laboratory 11
Laboratory 11 will meet in the Sun laboratory.
You will run a MIC-1 simulator
to execute MAC-1 code which you have hand assembled. Prior
to the laboratory, you must do the following:
- Make sure that
/opt/xtango is in your
PATH. Execute
setenv
from the command line and look at the value of the PATH
variable to verify that this is the case.
- Make a subdirectory called
sim.
- Copy the files from
/usr/local/courses/cs2734/micsim
to your sim subdirectory.
- Print a copy of the
mic.doc file and read it over.
- Run the simulator on the default MAC-1 program by typing:
runmic
- Write a MAC-1 assembly language program to calculate the sum
of the numbers from 1 to 100. The result is in the accumulator.
- Hand assemble the program into ASCII hex. (If your assembler
is working, you can use your assembler to produce the Hex.)
- Run the program on the MIC-1 simulator.
In the laboratory you will be asked to demonstrate the correctness
of your program by running it on the mic-1 in instruction mode.
You will also be asked to demonstrate cycle and subcycle mode.