edited by
742 views

1 Answer

1 votes
1 votes

@Dheeraj Varma

A computer performs a task based on the instruction provided. Instruction in computers comprises groups called fields...

These fields contain different information as for computers everything is in 0 and 1 so each field has different significance based on which a CPU decides what to perform...

@@ The most common fields are:

1. Operation field specifies the operation to be performed like addition.

2. Address field which contains the location of the operand, i.e., register or memory location.

3. Mode field which specifies how operand is to be founded...

@@ Instruction is of variable length depending upon the number of addresses it contains.

Generally, CPU organization is of three types based on the number of address fields:

1. Single Accumulator organization

2. General register organization

3. Stack organization..

In the first organization, the operation is done involving a special register called the accumulator. In second on multiple registers are used for the computation purpose.

In the third organization the work on stack basis operation due to which it does not contain any address field.

Only a single organization doesn’t need to be applied, a blend of various organizations is mostly what we see generally….

Based on the number of address, instructions are classified as: Note that we will use X = (A+B)*(C+D) expression to showcase the procedure…

 

# Zero Address Instructions –

A stack-based computer does not use the address field in the instruction. To evaluate an expression first it is converted to reverse Polish Notation i.e. Postfix Notation.…

## One Address Instructions –

This uses an implied ACCUMULATOR register for data manipulation. One operand is in the accumulator and the other is in the register or memory location.

Implied means that the CPU already knows that one operand is in the accumulator so there is no need to specify it....

### Two Address Instructions –

This is common in commercial computers. Here two addresses can be specified in the instruction.

Unlike earlier in one address instruction, the result was stored in the accumulator, here the result can be stored at different locations rather than just accumulators, but require more number of bit to represent address.…

#### Three Address Instructions –

This has three address field to specify a register or a memory location. Program created are much short in size but number of bits per instruction increase.

These instructions make creation of program much easier but it does not mean that program will run much faster because now instruction only contain more information but each micro operation (changing content of register, loading address in address bus etc.) will be performed in one cycle only....

 

1. https://docs.oracle.com/cd/E19253-01/817-5477/ennby/index.html 

 

2. https://gateoverflow.in/10976/Number-of-one-address-instruction 

 

3. https://gateoverflow.in/204126/Gate-cse-2018-question-51

 

 

Related questions

2 votes
2 votes
0 answers
1
0 votes
0 votes
1 answer
3
Gitika Babbar asked May 26, 2019
343 views
Why can’t we keep target32 address in the 32 bit registers of the RISC instruction? Why is it have to be tJ target26 instead of J target32 ?