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.

ansver
Answers: 1

Another question on Computers and Technology

question
Computers and Technology, 23.06.2019 06:30
Who can provide you with a new password when you have forgotten your old one? your provide you with a new password in case you forget your old one.
Answers: 3
question
Computers and Technology, 23.06.2019 09:00
Which best describes the role or restriction enzymes in the analysis of edna a. to break dna into fragments that vary in size so they can be sorted and analyzed b. to amplify small amounts of dna and generate large amounts of dna for analysis c. to purify samples of dna obtained from the environment so they can be analyzed d. to sort different sizes of dna fragments into a banding pattern that can be analyzed
Answers: 1
question
Computers and Technology, 23.06.2019 18:00
While inserting images, the picture command is usually used to insert photos from a digital camera, and the clip art command is usually used to a.edit the sizes and other characteristics of photos that have been inserted. b.take a screenshot of an image and copy it to the clipboard for pasting. c.search for drawings or other images from a library of prepared pictures. d.make illustrations using lines and shapes that are easy to manipulate.
Answers: 1
question
Computers and Technology, 24.06.2019 01:30
Hazel has just finished adding pictures to her holiday newsletter. she decides to crop an image. what is cropping an image?
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, 11.10.2020 01:01
question
History, 11.10.2020 01:01
Questions on the website: 13722363