Question: (8 points) Write a MIPS assembly language program which implements the following pseudocode: i = 0 for num = x to y counting by 5
- (8 points) Write a MIPS assembly language program which implements the following pseudocode:
i = 0for num = x to y counting by 5
ar[i] = num
i = i + 1
For your implementation, x is stored at the address in a0, y is at a0+1, and ar begins at a0+2 and continues for as many bytes as necessary. The outcomes of an example run are below:
x=0, y=10, ar={0, 5, 10} - (8 points) Write a 6502 assembly language program which implements the following pseudocode:
i = 0for num = x to y counting by 5
ar[i] = num
i = i + 1
For your implementation, x and y are stored in the first and second bytes of the zero page, ar starts at the third byte of the zero page and continues for as many bytes as necessary. The outcomes of an example run are below:
x=0, y=15, ar={0, 5, 10, 15}
Step by Step Solution
3.51 Rating (151 Votes )
There are 3 Steps involved in it
Answer 1 1 i0 2 for numx to y counting by 5 3 arinum 4 ii1 5 6 7 li t0 0 li t1 0 lw t2 0a0 lw t3 4a0 ... View full answer
Get step-by-step solutions from verified subject matter experts
