Sei sulla pagina 1di 5

Running Head: ASSIGNMENT 2: MARIE AND ISA

ASSIGNMENT 2: MARIE AND ISA

[Student Name]

[University Name]
Table of Contents
Answer to question 1..................................................................................................................2

Answer to question 2..................................................................................................................2

Answer to question 3..................................................................................................................2

Answer to question 4..................................................................................................................3

Bibliography...............................................................................................................................4

1 ASSIGNMENT 2: MARIE AND ISA


Answer to question 1

digital computer has a memory unit with 24 bits per word.

The instruction set consists of 199 different operations.

2^8 = 256. Therefore the operation code need 8bits.

There are total 24-8 = 16 bits are left for the address part of the instruction.

Total maximum allowable size for the memory is 2^16 = 65535.

2^15 = 32768-1 = 32767 is the largest unsigned binary number that can be accommodated in

one word of memory.

Answer to question 2

The immediate value will be 200+900 = 1100


2 ASSIGNMENT 2: MARIE AND ISA
Direct value = 800+900 = 1700

Indirect value = 500

Index value = 250

Answer to question 3

F = (A-B)*(C*D+E)

0-address 1-address 2-address


PUSH A LOAD A MOV A, F
PUSH B SUB B SUB T1, B
SUB STORE F MOV C, T2
POP A LOAD C MPY D, T2
PUSH C MPY D ADD E, T2
PUSH D ADD E MPY T1, T2
MPY STORE T MOV F, T2
PUSH E MPY F
ADD STORE F
PUSH A
MPY
POP F

Answer to question 4

There are 2^10 = 1024 possible instruction code.

Each address has 2^3 = 8 possible values.

So, for 15 2-address instruction has 15*8*8 = 960 instruction code

So, for 7 1-address instruction has =7*8 = 56 instruction code

1024-(960+56) = 8, 0-address instruction still possible to accommodate for the instruction

set architecture.

3 ASSIGNMENT 2: MARIE AND ISA


Bibliography

Furber, S. B. (2017). VLSI RISC architecture and organization. Routledge.

Harris, S., & Harris, D. (2015). Digital design and computer architecture: arm edition.

Morgan Kaufmann.

Tanenbaum, A. S. (2016). Structured computer organization. Pearson Education India.

Yadin, A. (2016). Computer systems architecture. Chapman and Hall/CRC.

Zhang, S., & Liu, H. (2018, August). The Comprehensive Experiment in the Course of

Computer Organization and Architecture. In 2018 13th International Conference on

Computer Science & Education (ICCSE) (pp. 1-5). IEEE.

4 ASSIGNMENT 2: MARIE AND ISA

Potrebbero piacerti anche