Write a procedure palindrome in mips assembly

Info iconThis preview shows page 1. Sign up to view the full content.

View Full Document Right Arrow Icon
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: the strings: “x”, “madam”, “wow” and “avid diva”. Write a procedure, palindrome in MIPS assembly language that checks if a string is a palindrome. The procedure should take a single argument that is a pointer to a null- terminated string in register $a0. The palindrome procedure should return a one in $v0 if the string is palindrome and 0 in $v0 otherwise. Comment your code. Assume that the string has as least one character. Do NOT use pseudo- instructions. 2. (6 points) In the...
View Full Document

{[ snackBarMessage ]}

Ask a homework question - tutors are online