logo

Computer Organization Assignment PDF

   

Added on  2021-12-16

7 Pages805 Words100 Views
Running head: COMPUTER ORGANIZATION
Computer Organization
Name of the Student:
Name of the University:
Author Note

1
COMPUTER ORGANIZATION
Answer to question number 1
1. There are 199 instructions. Hence 2^8 instructions would be required as 2^7 = 128.
Hence 8 bits for the opcode is required.
2. Number bits left for the address part of the instruction = 24 – 8 = 16 bits.
3. The maximum allowable size of the memory = 2^16 bits.
4. 24 1s or (2^24) -1 is the highest word that can be allocated in the memory.
Answer to question number 2
1. Immediate Addressing mode
The value to be added to the accumulator is 900
The value already stored in the accumulator is 200.
Therefore, the value which is loaded in the accumulator = 900 + 200 = 1100
2. Direct Addressing Mode
Effective address is 900
The value to be added to the accumulator is 1000.
The value already stored in the accumulator is 200.
Therefore, the value which is loaded in the accumulator = 1000 + 200 = 1200
3. Indirect Addressing mode
The effective address of 900 is 1000.
The value to be added to the accumulator is 500.
Value in the accumulator is 200.
Therefore, the value which is loaded in the accumulator = 500 + 200 = 700
4. Indexed Addressing mode
The value of base register is 100.
The effective address therefore = 900 + 100 = 1000.

2
COMPUTER ORGANIZATION
The value in location 1000 = 500
Value in the accumulator is 200.
Therefore, the value which is loaded in the accumulator = 500 + 200 = 700
Answer to question number 3
The expression provided: F = (A-B) *(C*D+E)
0-Address Machine
PUSH C
PUSH D
MUL
PUSH E
ADD
PUSH A
PUSH B
SUB
MUL
POP F
1-Address Machine
LOAD A
SUB B
STORE T1

End of preview

Want to access all the pages? Upload your documents or become a member.

Related Documents
Computer Organization - Study Material and Solved Assignments
|7
|837
|175

A digital computer with 24 bits per word
|5
|469
|343

Report on Computer Organization and Architecture
|5
|527
|86

Assignment Computer Organization and Architecture
|6
|520
|39

Computer Architecture and Organization | Report
|6
|671
|355

Computer Organization and Architecture | Document
|6
|543
|88