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 10:00
What is estimated time of arrival (eta)? a device that measures the acceleration (the rate of change of velocity) of an item and is used to track truck speeds or taxi cab speeds a gps technology adventure game that posts the longitude and latitude location for an item on the internet for users to find a north/south measurement of position the time of day of an expected arrival at a certain destination and is typically used for navigation applications
Answers: 3
question
Computers and Technology, 23.06.2019 22:50
What is an rss reader used for? for creating a user account on a social new site
Answers: 2
question
Computers and Technology, 24.06.2019 13:30
In the rgb model, which color is formed by combining the constituent colors? a) black b) brown c) yellow d) white e) blue
Answers: 1
question
Computers and Technology, 24.06.2019 20:20
3. write assignment statements that perform the following operations with the variables a, b, and c: a. adds 2 to a and assigns the result to b b. multiplies b times 4 and assigns the result to a c. divides a by 3.14 and assigns the result to b
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
Physics, 02.12.2020 19:20
question
History, 02.12.2020 19:20
question
Arts, 02.12.2020 19:20
question
Advanced Placement (AP), 02.12.2020 19:20
Questions on the website: 13722367