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

Interface Message Processor ( IMP )

Interface Message Processor ( IMP ) is a special purpose Computer. The Processor plays a vital role in Host-to-Host communication. IMP is placed between Host Computers.  IMP helps Hosts to exchange information. IMPs ( Interface Message Processors ) form a group. The group dedicates itself towards reliable transmission of Packets. _________________________ Note: An Interface Message Processor can be supposed to have a face. Firstly this supposed face of IMP is in the direction of the first Host, which sends the  message. Secondly, this face is turned towards the other Host.  Now, the IMP,  with its face turned around, communicates with this other Host.  Transformed message from IMP is communicated to this Host. __________________________ Message ( a piece of information ) sent from the Host ( source of information  ) is transformed into Packets. Transformation of the message into Packets is performed by an IMP. These Packets are forwarded to the receiver H...

Understanding Distribution

Distributed presence means that more than one object is there. Also, these objects are situated at more than one location.  One object may establish communication with another object. The first object may deliver some message. The message can be received by another object. It can be said that object distribution is successful, as one object has succeeded in delivering a message. The second object has successfully received the message. Two objects are at a distance. Communication brings them closer. The successful communication has served to highlight that the idea of distribution is meaningful. Distribution helps exchange of information. Many different objects can form a group.  Two groups can occupy different locations.  It may happen that at a particular location there are several objects. But, all these objects talk among themselves.They talk among themselves and make things happen.  There is a resultant of this talk process. All the communicating objects  at...

Message Switching

Message is a piece of information. Switching means movement.  In a Network there are a number of nodes. Nodes are vital junctions of a Network. Message Switching means transmission from one node ( one point ) of a Network to another node ( another point ). So, transmission is from point to point. Transmission from one point to another point is a single hop ( jump ). Message Switching means switch over of a Message. In one step of Message Switching,  Message switches over from one node to another.  The two nodes involved in a Switching operation are on the same Network. It cannot be that the beginning node ( source node) is on one Network and the second node ( sink node ) is on a different Network. In a point to point ( one junction to another junction ) transmission, a Message travels a part of its journey. Message moves from previous point to next point. The Network is Point-to-Point Network. A Switching activity means movement of a message. Indeed, the Message has mov...