Write a mips assembly language program, Assembly Language

Assignment Help:

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


Related Discussions:- Write a mips assembly language program

Label-assemblers directive-microprocessor, LABEL :   The Label directive...

LABEL :   The Label directive which is used to assign a name to the current content of the location counter. At the beginning of the assembly process, the assembler start a loca

Tabular comparison for micro processors parameters, Tabular comparison for ...

Tabular comparison for µ PS' Parameters Tables (a) and (b) list the characteristic of Intel microprocessor. Table(a):   Table(b): It has a 64 bit da

8086 assembly language program, move a byte string ,16 bytes long from the ...

move a byte string ,16 bytes long from the offset 0200H to 0300H in the segment 7000H

8088 associated with 8259 a-microprocessor, For an 8088 the 2 addresses lin...

For an 8088 the 2 addresses linked with an 8259A are normally consecutive, and the AO line is associated to the AO pin, but because there are just 8 data pins on the 8259A and the

Not-logical instruction-microprocessor, NOT : Logical Invert: The NOT inst...

NOT : Logical Invert: The NOT instruction complements (inverts) the contents of an a memory location or operand register bit by bit. The instance are as following: Example :

Ddition, Write a program that performs the addition, subtraction, multiplic...

Write a program that performs the addition, subtraction, multiplications, division of the given operands. Perform BCD operation for addition and subtraction.

Nonrecursive Factorial, Write a nonrecursive version of the Factorial proce...

Write a nonrecursive version of the Factorial procedure (Section 8.3.2) that uses a loop. (A VideoNote for this exercise is posted on the Web site.) Write a short program that inte

Program which allows the user to select from menu, Write a 32-bit program w...

Write a 32-bit program which when run, allows the user to select from a menu: (1)    Enter a Binary Number (2)    Enter a Decimal Number (3)    Enter a Hexadecimal Number

C#, * * * * **** ...

* * * * **** * * * * * How can i print this help me pls

Space don''t come in ASCII characters while printing?, .MODEL SMALL .STACK...

.MODEL SMALL .STACK 100H .DATA PROMPT DB \''The 256 ASCII Characters are : $\'' .CODE MAIN PROC MOV AX, @DATA ; initialize DS MOV DS, AX

Write Your Message!

Captcha
Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd