1. Write a MIPS assembly language program to realize the difference equation
y[n]=-0.5y[n-1]+1.5x[n]+0.5x[n-1] and process an array of data like that in the data
segment of Figure 1. Your program should work for any legal array of data of length one or
greater, not just the specific values in the data segment of Figure 1. The label xlen
corresponds to the data length and the label xData corresponds to the starting location of
the array of data.
1
2. Simulate your program using QtSpim and verify its operation.
.data
xlen: .word 10
xICS: .word 0
xData: .word 127, -100, 56, 23, -12, 88, 72, 0, -12, 140
yICS: .word 0
yData: .word 0