A hypothetical simple computer has the
following opcodes in its instruction set, each
of which takes two operands that are given
in the next 2 bytes :
00 Add (op1 + op2)
01 Subtract (opt — op2)
10 Multiply (op 1 x op2)
11 Divide (opl + op2)
Answers
Answered by
14
Answer:
add (op1+op2)
this opecode will add two operands operand 1 and operand 2 and will provide the result.
subtract(op1-op2)
this opecode will subtract two operands operand 1 and operand 2 and will provide the result.
multiply(op1*op2)
this opecode will multiply two operands operand 1 and operand 2 and will provide the result.
divide(op1/op2)
this opecode will divide two operands operand 1 and operand 2 and will provide the result.
Explanation:
Similar questions