Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

Part I Write a short program of five to ten lines in MARIE assembly language to

ID: 3683860 • Letter: P

Question

Part I

Write a short program of five to ten lines in MARIE assembly language to accomplish something.

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

Consider a computer that you have used or now use. (You may make an assumption on word size if needed.)

How large is the memory of the computer?

How long is a word in the computer above?

How many bits are required to address the bytes in that memory?

How many data lines are required to read data from the computer memory?

Explanation / Answer

1)

I have written a simple program to count number of times a loop is run in marie.

working program

ORG 100
LOOP, Load X
Add Z
Store X
Load Y
Skipcond 800
Jump Q
Subt Z
Store Y
Jump LOOP
Q, Output X
Halt
X, Dec 0
Y, Dec 10
Z, Dec 1

2)

It depends whether the operation is simple or complex. In case of complex operations involved in control unit we will develop a micro-program control unit otherwise a hardwired implementation is fine.

3)

RAM is 8 GB

word will be 64 bit.

to address a byte in the memory we will need 64 bits.

we have 64 bits for every location in the memory. so we will need 64 data lines.

Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote