subject

Consider an assembly language that has a 2-address ISA set. The instructions that are available in this machine are the following: Load b, a Load the value of a to b Add b, a Add the value of a to the value of b and place the result in b Subt b, a Subtract the value of a from the value of b and place the result in b Mult b, a Multiply the values found in a and b and place the result in b Store b, a Store the value of a in b. Output a Display the value of a on the screen Halt Stop the program Write an assembly code to implement the expression on the 2-address machine, and then display the value of d on the screen. Assume that the values of the variables are known. Hence, do not worry about their values in your code. Note that a or b, in the ISA, could be either a register or a variable. Moreover, you can use the temporary registers R1, R2, & R3 in your instructions (which are initially set to zero) to prevent changing the values of the variables (a, b,c) in the expression. Also, note that we do not have a numeric value 4 in the directive part. In accordance with programming language practice, computing the expression should not change the values of its operand.

ansver
Answers: 1

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 00:40
If you arrive at the same time as another user straight across from you yield if a. they flash your headlights at you b. you can’t see their turn signals c. you’re going street and they’re running d. you’re turning they’re going straight plz
Answers: 1
question
Computers and Technology, 22.06.2019 23:50
List a few alternative options and input and output over the standerd keyboard and monitor. explain their functioning in details.
Answers: 2
question
Computers and Technology, 24.06.2019 07:00
You are most likely to automatically encode information about
Answers: 1
question
Computers and Technology, 24.06.2019 22:30
Telling a computer that is already on to turn again is known as what type of boot?
Answers: 1
You know the right answer?
Consider an assembly language that has a 2-address ISA set. The instructions that are available in t...
Questions
question
Arts, 07.11.2020 20:20
question
Mathematics, 07.11.2020 20:30
Questions on the website: 13722367