• Home
  • Blog
  • Program in C and In Mips Assembly Language Program

Program in C and In Mips Assembly Language Program

0 comments

Write a program in C and in MIPS assembly language program that:

Initializes an integer array with 3 rows and 5 columns:

1   2   3   4   5

  • 6   7   8   9   10

11 12 13 14 15

  • inputs a row and column number from the user
  • main calls a child function that calculates the memory address of the chosen row & column like this:
  • int arrayAddress( int row, int col, int ncolumns, array); //returns address of array[row][col]
  • use shift instead of multiply where appropriate
  • print the address and the value of the chosen array element

The homework .asm file prompt is in the shared google folder here (Links to an external site.)

  • You must submit THREE files:
  • 1) Your .asm MIPS assembly file
  • 2) Your .c source file
  • 3) A brief report document file in .pdf .doc or .docx including:

a description of the program

2 screen shots showing each one working

the .c and .asm source code MUST be pasted into the end of the document

About the Author

Follow me


{"email":"Email address invalid","url":"Website address invalid","required":"Required field missing"}