Computer Architecture & Organization (EEL 4768) Lab #5 1.0 Project Functionality1 1.1 Overview The primary objective of this project is to increase your understanding of data, addresses, memory...

Lab needs to completed in MIPS assembly without using the jal and jr instructions.


Computer Architecture & Organization (EEL 4768) Lab #5 1.0 Project Functionality1 1.1 Overview The primary objective of this project is to increase your understanding of data, addresses, memory contents, and strings. You will be expected to apply selected MIPS assembly language instructions, assembler directives, and system calls sufficient enough to handle string manipulation tasks. 1.2 Part A: Hexadecimal Sleuth You are tasked to allow the user to enter a string consisting of zero or more Alphanumeric Words. Your program should replace Alphanumeric Words that are valid hexadecimal values with their decimal equivalent. For analogy, see an English Word Sleuth here: http://i1-news.softpedia- static.com/images/extra/WINDOWS/large/WordSleuthGenerator_01large.png More formally, write MIPS assembly code in MARS to allow the user to enter a line of text. The text entered will be a string of Alphanumeric Words without punctuation, except for spaces between any adjacent Alphanumeric Words and a single period as the final character. Alphanumeric Words, if present, consist of only Uppercase Letters {A,B,C, … , Z} and/or Numeric Digits {0,1,2, … , 9}. If and only if an entire Alphanumeric Word is a valid hexadecimal value, then it will be replaced with its equivalent decimal value. The program shall output the text with the corresponding substitutions to the console. 1.3 Part B: String Digit Score For the string entered in Part A, determine the overall String Digit Score using Table 1 and output it to the console. More formally, determine the largest valid hexadecimal value that is an entire Alphanumeric Word present in the string. Based on that value, determine the corresponding range in the left-hand column. Finally, output the String Digit Score listed in the right-hand column as a new line to the console. Table 1: Mapping of String Digit Score. Value of largest Hex utterance in sentence String Digit Score >=0 and ==100hex and <=ffffhex intermediate="">=10000 hex and
Oct 13, 2021
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here