60 likes | 332 Views
CDA 3101 Discussion Section 05. MIPS Assembly Language Programming. Problem1 . <<MIPS Assembly Language Programming>> Exercises 5.1 Write a simple integer calculator. Problem1. Problem 2. Exercises 5.2
E N D
CDA 3101 Discussion Section 05 MIPS Assembly Language Programming
Problem1 • <<MIPS Assembly Language Programming>> Exercises 5.1 Write a simple integer calculator.
Problem2 Exercises 5.2 Write a MIPS assembly language program to transfer a block of 10 words starting at memory location SRC to another area of memory beginning at memory location DEST.
Problem2 int SRC[10] = {1, 2, 3, 4, 5, 6, 7, 8, 9, 10}; int DEST[10]; void main() { int t2 = 0; int t3 = 10; do { t7 = SRC[t2]; DEST[t2] = t7; printf(“%d”, DEST[t2]); t2++; } while (t2 < t3); return; }