Question

Consider a hypothetical computer with an instruction set of only two n-bit instruc- tions.The first bit specifies the opcode, and the remaining bits specify one of the 2-1 n-bit words of main memory. The two instructions are as follows: 12.7 SUBS X Subtract the contents of location X from the accumulator, and store the result in location X and the accumulator. Place address X in the program counter JUMPX A word in main memory may contain either an instruction or a binary number in twos complement notation. Demonstrate that this instruction repertoire is reason- ably complete by specifying how the following operations can be programmed: a. Data transfer: Location X to accumulator, accumulator to location X b. Addition: Add contents of location X to accumulator c. Conditional branch. d. Logical OR. e. LO Operations.

0 0
Add a comment Improve this question Transcribed image text
Answer #1

(a Data trans^r: Locol?or x to accumolao acc mutov to Location X kee P Locations y, 2 as scratch space conch uoe using LS canAdd Contents of Loca fonx to accumubfor Add ts 3ame as alte an accurmulator substrac4 x Value 3ubs y , a gulbs z . zero out o

Add a comment
Know the answer?
Add Answer to:
Consider a hypothetical computer with an instruction set of only two n-bit instruc- tions.The first bit...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT