CS-160- Computer Architecture and Machine Language
Portfolio Prompt Six - Computer Architecture and Machine LanguageTranslate 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.
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.
Suppose the memory cells at addresses 00 through 05 in the machine described in machine language given with this assignment (Appendix C) contain the following bit patterns:
Address Contents
00 22
01 11
02 32
03 02
04 C0
05 00
Using the form below run the program.
CPU State
Cycle | Program Counter | Instruction Register | Decoded Instruction |
00 | |||
Section of main memory
General Registers
Address | Contents |
Section of main memory
Address | Contents | |
Section of main memory
Address | Contents | |
Address | Contents |