What is the (Appendix C) as mentioned throughout the assignment?

Portfolio Prompt Four - Computer Architecture and Machine Language
Background

Wow, the last four weeks you have taken in a great deal of information. You have learned about computers from their inception through the smallest of parts (transistors, bits, gates, etc.). This week is the final week of studying the machine itself.

The work you did this week focused on the CPU and Machine Language. The CPU, using the machine cycle (fetch, decode, execute), can process instructions based on the language for the given CPU. For this module we are using a small language taken from a text book [1]. It is the language you have used in class. You will use that language and the machine cycle to complete this week’s prompt.

The Prompt

Given the machine language document and the CPU work sheet attached to this prompt, complete the following:

  1. Translate the following instructions from English into the machine language given with this assignment (Appendix C).

a. LOAD register 6 with the hexadecimal value 77.

b. LOAD register 7 with the contents of memory cell 77.

c. JUMP to the instruction at memory location 24 if the contents of register 0 equals

the value in register A.

d. ROTATE register 4 three bits to the right.

e. AND the contents of registers E and 2 leaving the result in register 1.

a.

b.

c.

d.

e.

  1. The following are instructions written in the machine language given with this assignment (Appendix C). Translate them into English.

a. 7123

b. 40E1

c. A304

d. B100

e. 2BCD

a.

b.

c.

d.

Section of main memory

Address

Contents

e.

Use, and turn in the CPU Worksheet for the following problems:

  1. Suppose the memory cells at addresses 00 through 05 in the machine described in Appendix C contain the following bit patterns:

Address Contents

00 12

01 02

02 32

03 42

04 C0

05 00

When answering the following questions, assume that the machine starts with its program counter equal to 00.

    1. Translate the instructions that are executed into English.

    2. What bit pattern is in the memory cell at address 42 when the machine halts?

    3. What bit pattern is in the program counter when the machine halts?


  1. Suppose the memory cells at addresses 00 through 0D in the machine described in Appendix C contain the following bit patterns:

Address Contents

00 20

01 04

02 21

03 01

04 40

05 12

06 51

07 12

08 B1

09 0C

0A B0

0B 06

0C C0

0D 00

Assume that the machine starts with its program counter containing 00.

    1. What bit pattern will be in register 0 when the machine halts?

    2. What bit pattern will be in register 1 when the machine halts?

    3. What bit pattern is in the program counter when the machine halts?


[1] G. G. Brookshear and J. G. Brookshear, Computer science: an overview. Addison-Wesley Longman Publishing Co., Inc., 2002.