chrp127 - Chapter Review Problems 127 ? ? ? ? ? ? 128 cell...

Info iconThis preview shows pages 1–3. Sign up to view the full content.

View Full Document Right Arrow Icon
Chapter Review Problems 127 ??? ?? ?????? ?????? ?? ???? 128 cell at address 00 at the end of each fetch phase of the machine cycle until the machine halts. 6. Suppose three values x, y, and z are stored in a machine's memory. Describe the sequence of events (loading registers from memory, saving values in memory, and so on) that leads to the computation ofx + y + z. How about (2x) + y? 7. The following are instructions written in the machine language described in Appendix C. Translate them into English. a. 407E b. 8008 c. A403 d. 2835 e. B3AD 8. Suppose a machine language is designed with an op-code field of four bits. How many differ- ent instruction types can the language con- tain? What ifthe op-code field is increased to eight bits? 9. Translate the following instructions from English into the machine language described in Appendix C. a. LOAD register 7 with the hexadecimal value 66. b. LOAD register 7 with the contents of memory cell 66. c. AND the contents of registers F and 2 leaving the result in register O. d. ROTATE register 4 three bits to the right. e. JUMP to the instruction at memory loca- tion 31 if the contents of register 0 equals the value in register B.
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
10. Rewrite the program in Figure 2.7 assuming that the values to be added are encoded using floating-point notation rather than two's com- plement notation. 11. Classify each of the following instructions (in the machine language of Appendix C) in terms of whether its execution changes the contents of the memory cell at location 3B, retrieves the contents of the memory cell at location 3B, or is independent of the contents of the memory cell at location 3B. a. 153B b. 253B c. 353B d. 3B3B e. 403B ??? ?? ?????? ?????? 12. Suppose the memory cells at addresses 00 through 03 in the machine described in Appendix C contain the following bit patterns: Address Contents 00 24 01 05 02 CO 03 00 a. Translate the first instruction into English. b. If the machine is started with its program
Background image of page 2
Image of page 3
This is the end of the preview. Sign up to access the rest of the document.

Page1 / 11

chrp127 - Chapter Review Problems 127 ? ? ? ? ? ? 128 cell...

This preview shows document pages 1 - 3. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online