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

Other questions on the subject: Computers and Technology

image
Computers and Technology, 22.06.2019 15:00, 2alshawe201
The three logical operators used to write compound conditions are "and," "or," and "not." a: true b: false
Answers: 2
image
Computers and Technology, 23.06.2019 01:30, anggar20
Which tab is used to change the theme of a photo album slide show? a. design b. view c. transitions d. home
Answers: 1
image
Computers and Technology, 23.06.2019 16:00, AM28
Does read theory have answers keys ?
Answers: 1
image
Computers and Technology, 24.06.2019 05:00, alfarodougoy8lvt
Who is most likely be your target audience if you create a slide presentation that had yellow background and purple text
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 in other subjects:

Konu
Mathematics, 16.07.2019 02:50