Reference no: EM131524488
MARIE Assembly Language
Part I
Write a short program of five to ten lines in MARIE assembly language to accomplish something.
For example: Write a program in MARIE assembly language to evaluate the expression: A=B+C-D
We suppose that the program start at address 100 hexadecimal in the main memory and the content of the variables A,B,C,D are at the addresses 200,201,202,203 hexadecimal
You can implement any another example if you want.
Part II
Suppose you wanted to implement a control unit for a computer that you are designing.
Would you use a hardwired implementation or a micro-programmed control unit? Why?
What factors in the computer design would affect your decision?
Part III
1. A digital computer has a memory unit with 32 bits per word. The instruction set consists of 132 different operations. All instructions have an operation code part (opcode), and an address part (allowing for only one address).
Each instruction is stored in one word of memory.
a. How many bits are needed for the opcode? ________
b. How many bits are left for the address part of the instruction? _______
c. What is the maximum allowable size for memory? _______
2. Suppose that a 4 M x 32 bits main memory is built using 512 K x 8 bits RAM chips and memory is word addressable.
a. How many RAM chips are necessary? ______
b. How many RAM chips are needed for each memory word? _______
c. How many address bits are needed for each RAM chip? _______
d. How many address bits are needed for all memory? _______