Suppose we have a need to handle both negative and positive data beyond the simple test in
Question:
Suppose we have a need to handle both negative and positive data beyond the simple test in the various conditional branch instructions. One way to do this would be to replace the subtract instruction with a 10’s complement instruction. The COMP instruction complements the value in the calculator and leaves the value in the calculator.
a. How would subtraction be performed in this case?
b. Carefully trace the steps that the Little Man would perform to execute the new COMP instruction.
c. What is the new range of values possible with this modification, and how are these values represented in the Little Man Computer?
d. What would the Little Man do to execute a BRANCH ON POSITIVE instruction?
Step by Step Answer:
The Architecture of Computer Hardware, Systems Software and Networking An Information Technology App
ISBN: 978-1118322635
5th edition
Authors: Irv Englander