 Hello everyone, myself, Sanjay Udge, Assistant Professor, Department of Electronics Engineering, Valchan Institute of Technology, Solapur. Today we are going to discuss 8085 microprocessor part 2 instruction set, learning outcome. At the end of this session, students will be able to identify and select suitable instructions of 8085 microprocessor to write a program. Outline, Introduction, 8085 microprocessor instruction set, classification of instruction set, question, answer, references, introduction and instruction is a binary pattern designed inside a microprocessor to perform a specific function. The entire group of instructions that a microprocessor supports is called instruction set, 8085 has 246 instructions, each instruction is represented by an 8-bit binary value, this 8-bit binary value is called opcode or instruction byte, so the instruction set is nothing but a pattern of zeros and ones which is called as opcode, classification of instruction set, they are classified as data transfer instruction, it means data is to be transferred from the memory to the accumulator and vice versa, arithmetic instructions that which performs various arithmetic operations, addition, subtraction, logical instructions like ending oring, branching instruction and control instruction, control instructions, the control instructions control the operation of microprocessor. Here when the program counter fetches the instruction from the memory location to the instruction register, after this the instruction decoder performs the decoding process and once the instruction is decoded, the control instruction has been initiated to the various parts of the microprocessor to perform or to execute the current instruction and the program counter is will point to the address of the next instruction, no operation is performed that is the instruction is fetched and decoded, HLT, the CPU finishes executing the current instruction and stops further execution, an interrupt or reset is necessary to exit from the halt state, DI, the interrupt enable flip lock is reset and all the interrupts are disabled except trap, so enable disable interrupt means it will disable all the flip locks except trap, EI enable interrupt, all the flip locks are in the set condition by executing this instruction, RIM, SIM, this instruction is used to read the status of interrupt 7.5, interrupt 7.6, 6.5, 5.5 and read serial data input bit, logical instructions these instructions perform logical operations on data stored in registers, memory and status flags, various operations like AND or XOR, rotate, compare complements all these instructions are covered in the under the logical instructions, CMP the contents of of friend, register or memory are compared with the contents of the accumulator, CPI the second byte data is compared with the contents of the accumulator, ANA the contents of the accumulator are logically ended with the contents of the either register or memory and the result is placed in the accumulator ANI, it is similar to the ending operation with the accumulator, here ANI means there is a ending of accumulator contents and the 8 bit data given in the register, so the contents of the accumulator are logically and with the 8 bit data and the result is placed in the accumulator, ORA the contents of the accumulator are logically or with the contents of either register or memory and the result is placed in the accumulator, ORI the contents of the accumulator are logically or with the 8 bit data and the result is placed in the accumulator, so here AND and OR ANA and ORA will perform ending and oring operation respectively with the contents of the accumulator, here immediately ANI and ORI these are the ending operations between the accumulator and the data 8 bit data which is placed immediately in the instruction, RLC each binary bit of the accumulator is rotated left by one position, bit D7 is placed in the position of D0 as well as in the carry flag, so every bit is been shifted towards left side, RRC each binary bit of the accumulator is rotated right by one position, bit D0 is placed in the position of D7 as well as the in the carry flag, so the difference between RLC and RRC is rotating the bit either the right side or left side, CMA the contents of the accumulator are complemented, no flags are affected, CMP the carry flag is complemented, no other flags are affected, branching instructions the branching instruction alter the normal sequence flow, these instructions alter either unconditionally or conditionally, by the execution of branching instruction the normal sequence of the instruction to be executed is been altered and it will jump conditionally or unconditionally, JMP the program sequence is transferred to the memory address given in the operand, the program sequence is transferred to the memory address given in the operand based on the specified flag of program status word, jump carry, jump on carry generation, it means if this flag or if this the pliplup the pliplup of this carry flag CY is set to one then this instruction will alter the normal sequence and it will jump to the specified execution of the program, so here are few instructions JNC, JP, JM, JZ, jump if not 0, jump if 0, jump if even parity, jump if even parity that is JPE, JP 0, JNC jump if not carry, RET the program sequence is transferred from the subroutine to the calling program, the program sequence is transferred from the subroutine to the calling program based on the specified flag of the program status word and the program execution begins at the new address, RC, return to carry, return if not carry, return if not 0, return if 0, return if even parity, return it if odd parity, arithmetic instructions, these instructions perform the operations like addition, subtraction, increment, decrement, add the contents of the register or memory are added to the contents of the accumulator and the result is stored in the accumulator, ADC the contents of the register or memory and the carry flag are added to the contents of the accumulator and the result is stored in the accumulator, so the difference is here the contents of the register or memory is added with the accumulator contents in ADC the register memory and the carry flag are added to the contents of the accumulator, in both cases the result is stored in the what is LHLD instruction, the this instruction copies the contents of memory location pounded out by a 16 bits address into register L, it copies the contents of next memory relation into register H, example LHLD2040H, references thank you