MPMC 2022
MPMC 2022
In 8085 microprocessor , when a program is written - different instructions are written one by one
and this program is being stored in the RAM (memory) which is connected to it . But there a no. of
instrutions available in 8085 ( to be precise there are 246 different opcode available in 8085 ) . And
the 8085 simply fetches this Opcode ( binary data corresponding to the low level programming
instruction written by user in Mnemonics ) . Then it decodes it within itself ( which means control
doesn’t goes out of the processor ) . And as we know What a processor does is to takes some data
and process it and provide the result in some way .
The way in which this data is provided to 8085 or any processor in any instruction is called its
addressing mode . That is , if the data is provided immediately in the instruction only it will be called
as Immediate Addressing Mode . But as 8085 does different types of Airthmatic & logical
opereations , there are no. of ways to it is directed for data in different instructions . So by this , 8085
has 6 addressing modes -
4. Indirect register add. mode/ indirect add. mode/ Register indirect add. mode
If the address of the data is given in the form of register ( i.e. A ,B, C, D, E, H, L, etc ) , then reg. add.
mode .
eg: MOV B C
Eg: MVI B 46
Here the data 46H i.e. 01000110 ( this is binary equivalent of 46H which is in Hexadecimal format ) is
stored in register B.
In this instruction , address of the data ( to be executed ) is directly given in the instruction .
eg: IN 58H
Here the data present at the input port 58H is directly coppied to Accumulator register.
In this type of instruction , address of the data ( to be executed ) is provided in the form of data
stored in some register .
eg: MOV C M
Here the data present at the memory address whose location is equal to the content of HL register
pair is coppied to C register .
in these type of instructions , the data to be executed is not provided at all rather it is already
defined in the Opcode .
eg: CMA