Make your own free website on Tripod.com

 

 

 

Write a SRC assembly language program that will store the
integers from First to Last in an array and compute the sum
of 3 * I + 1 (where I takes on the value just defined).
Please note that there is no multiply instruction in the SRC.
Define First and Last using .equ statements at the start of
the program. Reserve space for the sum and then the array.
Test your program by using a value of First that is greater
than Last and then use the values of -4 and +5 for First and
Last. Turn in the .lst for the program and a picture of the
simulator that shows the registers and the memory in which
the Sum and Array are stored.