Noc19 cs04 Assignment5
Noc19 cs04 Assignment5
Noc19 cs04 Assignment5
Unit 5 - Week 4:
Addressing Modes, Instruction Set and Instruction
Execution Flow
Register for
Certification exam Assignment for Week 4
The due date for submitting this assignment has passed.
Course As per our records you have not submitted this Due on 2019-02-27, 23:59 IST.
outline
assignment.
Subtracts 3030 to the value in Accumulator and stores the result in Accumulator
Week 2:
Fundamental of None of the above
Digital Computer
No, the answer is incorrect.
Week 3: Score: 0
Addressing Accepted Answers:
Modes, Subtracts the value in memory location 3030 to the value in Accumulator and stores the result in
Instruction Set
Accumulator
and Instruction
Execution Flow
2) The instruction ADD 3030 is of 1 point
Week 4:
A 3-address instruction format
Addressing
Modes, A 2-address instruction format
Instruction Set
and Instruction A 1-address instruction format
Execution Flow
A 0-address instruction format
Lecture 1: No, the answer is incorrect.
Instruction
Score: 0
Format
Accepted Answers:
Lecture 2:
A 1-address instruction format
Instruction Set
Week 7:
Organization
and Optimization
of Micro-
programmed
Controlled
Control Unit
1->A; 2->D; 3->C; 4->B;
Week 11:
Memory
Sub-system
Organization
3
Week 12:
Input/output 25
Subsystem
12
TEXT 20
TRANSCRIPTS
No, the answer is incorrect.
Score: 0
Accepted Answers:
20
6) As per the example shown in the previous question (question 5), what will be the content of 1 point
the accumulator when the instruction “LOAD INDIRECT 7” is executed?
25
20
25
7) For a 0-address instruction format, what would be the top element of the stack following 1 point
sequences of instructions?
PUSH 20; PUSH 5; PUSH 5; ADD; SUB; PUSH 20; MULT.
100
200
10
8) How many bits of opcode is required to implement a CPU with 10 arithmetic and logical 1 point
instructions, 2 control instructions, and 5 data transfer instructions?
9) Consider a CPU with 8-bit data bus and 16-bit address bus. The memory is byte 1 point
organized. Consider the instruction format with one operand. Length of the instruction is three bytes
and the first byte indicates the op-code. Second byte indicates the lower eight bits address and third
byte indicates the higher eight bits address. Consider the instruction “ADD FE 70”. This instruction
adds the content of memory location to accumulator. The instruction is stored in consecutive memory
location starting from memory location 5000H. We assume that Accumulator initially has the value of
20. In the figure given below, what are the values in Memory Locations 5000, 5001, 5002 and
Accumulator after the instruction ADD FE 70 is executed.
10)The instruction LDA FF0 (machine code of LDA is 5) is stored in location 7F0. The contents 1 point
in memory location FF0 are loaded into accumulator. After its execution, accumulator stores value 8.
The figure below shows a snapshot of the registers and their contents.
Immediately after the fetch cycle of the 1st instruction (LDA FF0), the values in MAR, IR and MBR are: