Write a mips assembly language program, Assembly Language

Write a MIPS/SPIM assembly language program that prints the smallest and largest values found in a non-empty table of N word-sized integers. The address of the first entry in your table should be named table, and N should be a defined constant.

Test your program out on the following two test cases plus any additional cases that you deem worthwhile:

Modify the palindrome.asm program see attached so that it ignores whitespace, capitalization and punctuation. Your program must thus be able to recognize the following strings as valid palindromes:

  Madam, I'm Adam!!!!!!!????

  Ed, I saw Harpo Marx ram Oprah W. aside.

  A man, a plan, a canal - Panama!

  Go hang a salami; I'm a lasagna hog.
  "Naomi, sex at noon taxes," I moan.

  1 2 321

 A "perfect number" is a positive integer greater than 1 which is equal to the sum of its divisors (except for the original number itself). For example, 6 is perfect, because it is equal to 1 + 2 + 3, and it so happens that 1, 2 and 3 are the only integer values smaller than 6 that divide into 6 "evenly." On the other hand, 12 is not perfect, since 12 ? 1 + 2 + 3 + 4 + 6.

Write a MIPS/SPIM assembly language program that will test all integers between 5 and 500, and print out only the "perfect" ones. By the way, there only 3 numbers that should be output, one of which is 6.

For 3 points of additional credit, construct your solution in such a way that the main program repeatedly calls on a "subroutine" named perfect; this subroutine is passed a single integer argument that it checks for the property of being "perfect." A true/false answer of some sort gets returned by this subroutine

Posted Date: 3/13/2013 5:31:18 AM | Location : United States







Related Discussions:- Write a mips assembly language program, Assignment Help, Ask Question on Write a mips assembly language program, Get Answer, Expert's Help, Write a mips assembly language program Discussions

Write discussion on Write a mips assembly language program
Your posts are moderated
Related Questions
Write a program to solve problem 9, Summation Program, on page 179 of chapter 5 in the textbook (book:kip Irvine Assembly Language sixth edition)

DQ:   Define  Quad word:-  This directive is taken in use to direct the assembler to reserve 4 words (8 bytes) of memory for the specified variable and can initialise it having

Program :  Write an assembly program to find out the largest number from a given unordered array of 8-bit numbers that stored in the locations starting from a known address. S

a- Trace the following program fragment and find out the content of ax after the          the execution of the program.         X db   5,7  -3,-9,4,-7,9               Mov

#I submitted my assignment this morning and it is still processing. How long does it take?

Project Description: Write an 80x86 assembly program that performs the following functions: Reads a set of integers from a file into an array. The data file name is to be

A/D conversion: Basic tasks: (a) Write a program that will read and display the analog voltage on pin PE7 approximately once every second. (b) Write a program that will read and d

give the explaination of timing diagram minimum mode memory write cycle

a program that display English letters excluding vowels

How is bob different from johnny in the outsiders