Assignment: Name: Ananya Reg. No: 1712855 Trade:Dcs/cde
Assignment: Name: Ananya Reg. No: 1712855 Trade:Dcs/cde
Name: Ananya
Trade:Dcs/cde
2. Register addressing.
3. Direct addressing.
4. Indirect addressing.
Immediate addressing
Data is present in the instruction. Load the immediate data to the destination
provided.
Register addressing
Direct addressing
Used to accept data from outside devices to store in the accumulator or send the
data
stored in the accumulator to the outside device. Accept the data from the port
00H and
store them into the accumulator or Send the data from the accumulator to the
port
01H.
Indirect Addressing
This means that the Effective Address is calculated by the processor. And the
contents of the address (and the one following) is used to form a second address.
The
second address is where the data is stored. Note that this requires several
memory
accesses; two accesses to retrieve the 16-bit address and a further access (or
accesses)
Suppose the Data Segment holds the Base Aaddress as 1000h and the data you need is present
in the 0020h memory location (Offset) of the Data Segment. The calculation of the actual
address is done as follows.
1. Left shift the 16-bit address present in the segment register by 4-bits
--------------------------------------
At any point of time we can change the base address of the segment registers and use the
memory locations in those segments using the offset.