Question: please help Consider a hypothetical computer with an instruction set of only two n-bit instructions. The most significant bit specifies the op code, and the

please help
Consider a hypothetical computer with an instruction set of only two n-bit instructions. The most significant bit specifies the op code, and the remaining bits specify one of the 2n-1 n-bit words in the main memory. The two instructions are: SUBS X the accumulator JUMP X subtract the contents of location x from the accumulator, and store the result in location x and in place address X in the program counter A word in main memory may contain either an instruction or a binary number in 2's complement notation. Demonstrate that this instruction repertoire is reasonably complete by specify how the following operations can be programmed as well as any assumptions that you may need for each operation. a) data movement: location x to accumulator b) data movement: accumulator to location x c) operate: add content of location x to accumulator d) control: unconditional branching
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
