The document discusses different types of addressing modes used in the 8085 microprocessor. It describes 5 addressing modes: immediate addressing where data is included in the instruction, direct addressing where data is stored in memory at a specified address, register addressing where data is stored in a register, register indirect addressing where an address is stored in a register pair pointing to data in memory, and implied addressing where the instruction itself specifies the operation without additional data. It provides examples of instructions that use each addressing mode.
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
0 ratings0% found this document useful (0 votes)
62 views17 pages
Timing Diagrams Add Modes
The document discusses different types of addressing modes used in the 8085 microprocessor. It describes 5 addressing modes: immediate addressing where data is included in the instruction, direct addressing where data is stored in memory at a specified address, register addressing where data is stored in a register, register indirect addressing where an address is stored in a register pair pointing to data in memory, and implied addressing where the instruction itself specifies the operation without additional data. It provides examples of instructions that use each addressing mode.
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
You are on page 1/ 17
Instruction Cycle Time required to execute and fetch an entire instruction is
called instruction cycle. It consists of:
Fetch cycle – The next instruction is fetched by the address stored in program counter (PC) and then stored in the instruction register. Decode instruction – Decoder interprets the encoded instruction from instruction register. Reading effective address – The address given in instruction is read from main memory and required data is fetched. The effective address depends on direct addressing mode or indirect addressing mode. Execution cycle – consists memory read (MR), memory write (MW), input output read (IOR) and input output write (IOW)
Machine Cycle The time required by the microprocessor to complete an operation
of accessing memory or input/output devices is called machine cycle. T-state is defined as one subdivision of operation performed in one clock. period. These subdivisions are internal states synchronized with the system clock, and each T-state is precisely equal to one clock period. ADDRESSING MODES -Every instruction of a program has to operate on a data. -The method of specifying the data to be operated by the instruction is called Addressing.
The 8085 has the following 5 different types of addressing.
1. Immediate Addressing 2. Direct Addressing 3. Register Addressing 4. Register Indirect Addressing 5. Implied Addressing IMMEDIATE ADDRESSING • In immediate addressing mode, the data is specified in the instruction itself. The data will be a part of the program instruction. • EX. -MVI B, 3EH - Move the data 3EH given in the instruction to B register; -LXI SP, 2700H- Move the data 2700h to stack pointer -ADI 45H- The 8-bit data (operand) is added to the contents of the accumulator and the result is stored in the accumulator -ACI 45H -The 8-bit data (operand) and the Carry flag are added to the contents of the accumulator and the result is stored in the accumulator SUI 45H , SBI 45H , ORI 86H DIRECT ADDRESSING • In direct addressing mode, the address of the data is specified in the instruction. • The data will be in memory. In this addressing mode, the program instructions and data can be stored in different memory. EX. LDA 1050H - Load the data available in memory location 1050H in to accumulator; SHLD 3000H-The contents of register L are stored into the memory location specified by the 16-bit address in the operand and the contents of H register are stored into the next memory location by incrementing the operand STA 4350H-The contents of the accumulator are copied into the memory location specified by the operand REGISTER ADDRESSING • In register addressing mode, the instruction specifies the name of the register in which the data is available. EX. MOV A, B - Move the content of B register to A register; SPHL- The instruction loads the contents of the H and L registers into the stack pointer register ADD C-The contents of the operand (register or memory) are added to the contents of the accumulator and the result is stored in the accumulator XCHG-The contents of register H are exchanged with the contents of register D, and the contents of register L are exchanged with the contents of register E REGISTER INDIRECT ADDRESSING
• In register indirect addressing mode, the instruction specifies the name of
the register in which the address of the data is available. • Here the data will be in memory and the address will be in the register pair. EX. MOV A, M - The memory data addressed by H L pair is moved to A register. LDAX B -The contents of the designated register pair point to a memory location. This instruction copies the contents of that memory location into the accumulator IMPLIED ADDRESSING • In implied addressing mode, the instruction itself specifies the data to be operated. EX. CMA - Complement the content of accumulator; RAL-Each binary bit of the accumulator is rotated left by one position through the Carry flag. Bit D7 is placed in the Carry flag, and the Carry flag is placed in the least significant position