subject

Write a machine code program for all the following problems. Test to make sure that they work in LC3. It’s best to complete each step and test before moving onto the next. No credit if you write code in assembly. Your machine code file name must be named, Multiply. bin a. The LC-3 has no multiply instruction. You must write code to allow for multiplication of two numbers. These numbers must be loaded into the registers R3 and R4 from memory. Load R3 with contents of memory from x4000 and R4 from x4001. In other words, someone running this code will place the data in these two memory locations. b. Write machine code to multiply the contents of R3 with the contents of R4. The result must be stored in R5. In other words, R5 = R3 * R4. c. You must also store the result at memory location x4002. d. Modify your code to change the contents of register R2 based on the final result stored in R5. If R5 is greater than 0, R2 must be set to 1 If R5 is less than 0, R2 must be set to -1 If R5 is equal to 0, R2 must be set to 0

ansver
Answers: 1

Another question on Computers and Technology

question
Computers and Technology, 23.06.2019 00:30
Write the html code to make a link out of the text “all about puppies”. it should link to a pdf called “puppies.pdf” inside the “documents” folder. the pdf should open in a new window.
Answers: 2
question
Computers and Technology, 23.06.2019 02:30
Which component acts as a platform on which application software runs
Answers: 2
question
Computers and Technology, 23.06.2019 11:00
What are the possible consequences of computer hacking? what is computer piracy? describe some examples. what are the effects of computer piracy? what are the possible consequences of computer piracy? what is intentional virus setting? describe some examples. what are the effects of intentional virus setting? what are the possible consequences of intentional virus setting? what is invasion of privacy? describe some examples. what are the effects of invasion of privacy? what are the possible consequences of invasion of privacy? what is an acceptable use policy and what is the purpose of the acceptable use policy what is intellectual property and how can you use it?
Answers: 1
question
Computers and Technology, 23.06.2019 21:50
Description: write function lastfirst() that takes one argument—a list of strings of the format "lastname, firstname" —and returns a list consisting of two lists: (a) a list of all the last names (b) a list of all the first names
Answers: 2
You know the right answer?
Write a machine code program for all the following problems. Test to make sure that they work in LC3...
Questions
question
Mathematics, 17.04.2020 03:20
question
Mathematics, 17.04.2020 03:27
Questions on the website: 13722363