1 / 5

MIPS Assembly Language Programming

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

chelsa
Download Presentation

MIPS Assembly Language Programming

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. CDA 3101 Discussion Section 05 MIPS Assembly Language Programming

  2. Problem1 • <<MIPS Assembly Language Programming>> Exercises 5.1 Write a simple integer calculator.

  3. Problem1

  4. 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.

  5. 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; }

More Related