Answered step by step
Verified Expert Solution
Question
1 Approved Answer
QUESTION 1 Question 1 is based on Figure 3 and Table 2. $$ y=left(A / B^{2}-C^{2} ight) /(B+C)-A $$ Figure 3; Equation r Write the
QUESTION 1 Question 1 is based on Figure 3 and Table 2. $$ y=\left(A / B^{2}-C^{2} ight) /(B+C)-A $$ Figure 3; Equation r Write the appropriate program using correct assembly language notation to compute equation in Figure 3 using one-address and three-address instructions. The instructions are given in Table 2. Note that register A, B and C cannot be modified and register $\mathbf {x}, \mathbf {y}$ and $\mathbf {z}$ can be used as temporary register. Final answer must be stored in register y. Table 2: Machine instruction \begin{tabular}(ICC Whline One-address & Three-address Thline LOAD $$ & ADD $(m, n, 0$ Whline STOR $$ & SUB $(m, n, 0$ W Thline ADD $m$ & MUL $(m, n, 0$ Thline SUB $m$ & DIV $(m, n, 0$ Whline MUL $m$ & Whline DIV $m$ & hline \end{tabular) (15 marks) CS.SD.655
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started