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
Example : Write a program to move the contents of the memory location 0500H to BX and also to register CX. Add immediate byte 05H to the data residing in memory location, whose ad

How to write an assembly program The initial step in writing an assembly language program is to identify and study the problem. After studying the problem, choose the logical m

Write an 8086 program to find out the number of positive numbers and negative numbers from a given series of signed numbers include flow chart ..

how o create the flow chart for scan ROW4, Column 1 and 3.tq

program to arrange a given set of numbers in descending order

Pin functions for the minimum mode operation of 8086 are following: 1) M/I/O -Memory/IO: This is a status line logically equivalent to S2 in maximum mode. When it is low, it

1. Write a program that will generate an array of ten random 32-bit integers, and that will  display on the monitor the numbers followed by either the words " has the fourth bit se

a program that display English letters excluding vowels

The Pentium Pro    Introduced in the year 1995, the Pentium Pro reflected  still  more  design  breakthroughs.  The Pentium Pro may process 3 instructions in a single clock cy

1. Write an assembly program that adds the elements in the odd indices of the following array. Use LOOP. What is the final value in the register? array1 DWORD 10, 20, 30, 40, 50, 6