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 12:40
The most complicated four letter word
Answers: 1
question
Computers and Technology, 22.06.2019 15:00
When designing content as part of your content marketing strategy, what does the "think" stage represent in the "see, think, do, care" framework?
Answers: 3
question
Computers and Technology, 23.06.2019 20:10
Leo is a recruitment executive for a large company. he has identified new labor resource requirements in both the marketing and production departments. what should be his first step in recruiting candidates for the positions? a. conduct background checks of candidates b. make job offers c. arrange interviews d. conduct reference checks e. place job ads on job sites
Answers: 1
question
Computers and Technology, 23.06.2019 21:00
Uget brainliest if accurate mary has been given the responsibility of hiring a person for the position of a software testing officer. which management function would mary achieve this responsibility?
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
SAT, 22.03.2021 19:50
question
English, 22.03.2021 19:50
question
Mathematics, 22.03.2021 19:50
question
Mathematics, 22.03.2021 19:50
Questions on the website: 13722367