MIPS Assembly Language Programming - PowerPoint PPT Presentation

1 / 5
About This Presentation
Title:

MIPS Assembly Language Programming

Description:

CDA 3101 Discussion Section 04 MIPS Assembly Language Programming Problem1 int chico[10] = {1, 2, 3, 4, 5, 6, 7, 8, 9, 10}; int sum; void main() { int t1 = 0; int ... – PowerPoint PPT presentation

Number of Views:171
Avg rating:3.0/5.0
Slides: 6
Provided by: ufl76
Learn more at: https://www.cise.ufl.edu
Category:

less

Transcript and Presenter's Notes

Title: MIPS Assembly Language Programming


1
MIPS Assembly Language Programming
CDA 3101 Discussion Section 04
2
Problem1
  • int chico10 1, 2, 3, 4, 5, 6, 7, 8, 9, 10
  • int sum
  • void main()
  • int t1 0
  • int t2 10
  • int t3 0
  • do
  • int t5 chicot1
  • t3 t5
  • t1
  • while (t1 lt t2)
  • sum t3
  • return 0

3
Problem1
  • ltltMIPS Assembly Language Programminggtgt
  • Exercises 5.1
  • Write a MIPS assembly language program to find
    the sum of the first 100 words of data in the
    memory data segment with the label chico. Store
    the resulting sum in the next memory location
    beyond the end of the array chico.

4
Problem2
  • int SRC10 1, 2, 3, 4, 5, 6, 7, 8, 9, 10
  • int DEST10
  • void main()
  • int t2 0
  • int t3 10
  • do
  • t7 SRCt2
  • DESTt2 t7
  • t2
  • while (t2 lt t3)
  • return 0

5
Problem2
  • Exercises 5.2
  • Write a MIPS assembly language program to
    transfer a block of 100 words starting at memory
    location SRC to another area of memory beginning
    at memory location DEST.
Write a Comment
User Comments (0)
About PowerShow.com