Question: Read three integers x , y , and z . If x > y then Set x to x + z - y Output x
Read three integers and
If then
Set to
Output
Else
Output
points Consider the following Assembly program and the opcode table in Fig
ure
a What does the program do Explain this by writing an algorithm in pseudocode
that is equivalent to this assembly code.
b Assuming the machine instruction is composed of a bit opcode and a bit
address field; give the binary machine code for the first instructions only.
c What value is entered in the symbol table for the symbols LOOP, SUB, DONE, X Y
and ZERO in the previous assembly program? Assume that the program is loaded
beginning with memory location
Figure : Typical assembly language instruction set
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
