subject

Write and test a MIPS assembly language program that 1. Prompts the user for a machine code of a MIPS instruction, i. e. a 32-bit binary represented in hexadecimal. Obviously, the input must be a string of 8 hexadecimal digits (the prefix '0x' is not required.) 1.a If the input was an empty string exit the program. 2. Checks for the validity of the input and print an error message if an invalid string was inputted (e. g. too long, too short, contain invalid characters, etc..). The error message should tell the user the cause of the error. 3. Checks if the opcode of the instruction is one of the following: a. Arithmetic and logical (i. e. the opcode is 0) b. Data transfer (lw and sw only) If it is print out the opcode in decimal. 4. If the opcode was not one of those prints out a message telling the user that the opcode was not recognized. 5. Go back to step 1. Run the program and test the inputs for at least one valid instruction for each instruction category listed above, and a few invalid input strings.

ansver
Answers: 1

Another question on Computers and Technology

question
Computers and Technology, 21.06.2019 22:30
What are compression artifacts? 1) visible defects in the picture caused by the nature of the compression algorithm. 2) numbers that tell a web server how much to compress a picture for faster transmission. 3) invisible defects in the picture preserved by lossless compression. 4) numbers that tell a photo editing program how much to compress a picture for faster transmission.
Answers: 3
question
Computers and Technology, 22.06.2019 04:30
What kind of software users of all skill levels create web pages that include graphics, video, audio, animation, and other special effects? website authoring website software website publishing website editing
Answers: 1
question
Computers and Technology, 22.06.2019 17:00
1. so if i wanted to build a linux server for web services(apache) with 1cpu and 2 gb of memory.-operating at 75% of memory capacity2. a windows server with 2 cpu/ 4gb memory- operating at 85% of memory capacity3. a storage server with 1 cpu/ 2gb memory- operating at 85% of memory capacityhow much memory do i have to add for each server.so that the utilization rate for both cpu and memory is at a baseline of 60%."the details for the cpu like its processor or the memory's speed isnt to be concerned" yeah i kept asking my teacher if he's even sure about the but the whole class seems to be confused and the project is due in 3 days..this is a virtualization project where i have to virtualize a typical server into an exsi hypervisor.
Answers: 2
question
Computers and Technology, 23.06.2019 03:30
Many everyday occurrences can be represented as a binary bit. for example, a door is open or closed, the stove is on or off, and the fog is asleep or awake. could relationships be represented as a binary value? give example.
Answers: 1
You know the right answer?
Write and test a MIPS assembly language program that 1. Prompts the user for a machine code of a MIP...
Questions
question
Mathematics, 30.04.2021 19:00
question
Mathematics, 30.04.2021 19:00
question
Mathematics, 30.04.2021 19:00
question
Mathematics, 30.04.2021 19:00
Questions on the website: 13722361