Skip to main content

Addressing Modes

The way in which data in the main memory of a  Computer is addressed by a Processor is termed as the Addressing Mode used by the Processor. Such address of data is contained within the instruction word. It should be noted that data in memory is referenced in different ways.

______________________

______________________

Instruction Word is a small  memory area that can hold  ( i ) an opcode ( ii ) and an entity of relevance to the opcode.

______________________

______________________

The referee of data is the Processor. A location in main memory is referred to by the Processor.

There are different ways in which reference to a piece of data is made. These ways of referring to data are:

( 1 ) Direct Addressing: When the address of data is given in binary form, a direct reference to data is made. 

Address in binary form is a state that matches the deployed address standard at the native level. Direct Addressing requires us to do away with any kind of translation of  address. We are talking  of the data address.

( 2 ) Immediate Addressing: The operand itself appears in the instruction word in memory. The memory reference performed by the Processor results in arrival of the required data.

The data that is immediately available is instantly used as instructed by the Processor instruction.

( 3 ) Relative Addressing:

( 3 ) ( a ) Self-Relative Addressing: The address part of the instruction word is added to the current contents of the Program Counter.

_____________________

_____________________

Note: Program Counter is a counting register. It is used to maintain the sequence of  execution of a Computer Program.

____________________

____________________

In fact, the address part of the instruction word contains a value indicating displacement. 

The displacement value and Program Counter contents are added to yield a new Program location. This new location of instruction execution is at a displacement. 

( 3 ) ( b ) Base Addressing: In this scheme the address part of the instruction word is added to the contents of the Base Register. The addition yields the direct address of the required operand. Here the content of the  Base Register contains the base address.

( 4 ) Indirect Addressing: In this scheme the address contained in the instruction word gives another address. This newly obtained address is the address of the operand. 

We can see that two memory references are needed to obtain the data.

( 5 ) Indexed Addressing: This scheme is used to identify a section of data in a storage area. The contents of the Index Register are modified by adding the specified address in the instruction word. 

Based on  Index Register contents a series of direct addresses are generated one by one. These addresses help to  reference successive instructions in a step by step manner. 

After some time instruction execution stops as dictated by the contents of the Index Register. 


____________________________
____________________________




Comments

Popular posts from this blog

Local-Area Networks

Local-Area Networks ( LANs ) are restricted to a small area. Such Networks may be established within a building. Computers that are part of Local-Area Networks are Personal Computers ( PCs ) or microcomputers. These Computers are connected to each other. Simple communication lines connect these Pers Networks bring people together. When people join  hands teamwork becomes possible. The structural composition of LANs simplifies teamwork. In other words, LAN hardware supports teams having similar processing requirements. LAN Computers readily support personalization of tasks allocated to professionals.  Office staff can work together and share information. This improves the efficiency of the entire workforce. It has been noted that here all the Networked Computers are Personal Computers. They are of equal capacity. Mostly LAN users have similar tasks. If situations allow, a user is independent to access any Computer to serve his purpose. LAN users can exercise the option of secu...

Computers - An Introduction

Computers are man made machines. They are made to work very fast. Working fast they can solve  big and small problems.  Modern science has given us these computers. They are very popular. Computers affect and change lives. They keep us happy.The happiness grows. Computers are quick and smart. Great problem solvers and simplifiers are our computers. They can do our work without stopping. Focus is on doing only what is needed. Not needed, not done.  Computers are  life-less servants. They cannot think or make decisions on their own. They are empowered to work. They are given each and every thing so that they carry out our orders. Orders are respected by computers. The manner in which computers work is wholly dependent on man.  The quality of service provided by computers is remarkable. They are loved by human beings. Computers are known for smart and quick service. Computers do not give wrong results. Correct answers are always given. Questions which are difficult...

Euclid's Algorithm

The Greatest Common Divisor ( GCD ) of  two numbers is a number. The number ( GCD ) causes division of the two numbers. This number ( GCD ) is the greatest number that is possible. This divisor partially forms the two numbers. Adding  the divisor successively may result in formation of the two numbers. One can note that when the divisor is the greatest, the division of the dividend is the sharpest. The division operation is very effective. When the Greatest Common Divisor of two numbers is considered, we think of a number that can cause division of both the numbers. Here the two numbers are unequal. The Greatest Common Divisor causes divisions of the two numbers differently. This is clear from the two different quotient values.  The GCD value is very interesting to note. It relates very well with the two numbers. The GCD of two even numbers is also an even number. The GCD of two odd numbers is an odd number. So, we can say that GCD is an abstraction of the two numbers in ...