Introduction to Microprocessor| MicroController| MicroComputer

Microprocessor Definition A microprocessor is a multi-purpose, Programmable, clock driven, register-based electronic device that reads binary instructions from a storage device called memory, accepts binary data as input and processes data according to those instructions and provide results as output. OR It is an electronic device that fetches instructions from memory, execute them and provide […]

Continue Reading

Program to Transfer block of N-bytes in reverse order from source to destination

Q. Write an 8085 program and draw a flowchart to Transfer block of N-bytes in reverse order from source to destination.(8085 Microprocessor Program) Flowchart/Algorithm   Program Address Mnemonics Operand Opcode Comments 2000 MVI C, 05H 0E Initialize reg. C to 05H, i.e. number of bytes. 2001 05 2002 LXI H, 3000H 21 Initialize H-L pair […]

Continue Reading

Program to Transfer block of N-bytes from source to destination

Q. Write an 8085 program and draw a flowchart to Transfer block of N-bytes from source to destination.(8085 Microprocessor Program) Flowchart/Algorithm   Program Address Mnemonics Operand Opcode Comments 2000 MVI C, 05H 0E Initialize reg. C to 05H, i.e. number of bytes. 2001 05 2002 LXI H, 3000H 21 Initialize H-L pair to source memory […]

Continue Reading

Program to Subtract two 16-bit numbers without borrow

Q. Write an 8085 program and draw a flowchart to Subtract two 16-bit numbers without considering the borrow.(8085 Microprocessor Program) Flowchart/Algorithm Program Address Mnemonics Operand Opcode Comments 2000 LHLD 3000H 2A Load H-L pair with 1st operand from 3000H. 2001 00 2002 30 2003 XCHG EB Exchange H-L pair with D-E pair. 2004 LHLD 3002H […]

Continue Reading

Program to Subtract two 16-bit numbers with the borrow

Q. Write an 8085 program and draw a flowchart to Subtract two 16-bit numbers along with considering the borrow.(8085 Microprocessor Program) Flowchart/Algorithm   Program Address Mnemonics Operand Opcode Comments 2000 LHLD 3000 H 2A Load H-L pair with data from 3000H 2001 00 2002 30 2003 XCHG EB Exchange data from H-L pair with D-E […]

Continue Reading

Program to Subtract two 8-bit numbers without borrow

Q. Write an 8085 program and draw a flowchart to Subtract two 8-bit numbers without considering the borrow.(8085 Microprocessor Program) Flowchart/Algorithm Program Address Mnemonics Operand Opcode Comments 2000 LXI H, 3000H 21 Load H-L pair with address 3000H. 2001 00 2002 30 2003 MOV A, M 7E Move the 1st operand from memory to reg. […]

Continue Reading

Program to Subtract two 8-bit numbers with the borrow

Q. Write an 8085 program and draw a flowchart to Subtract two 8-bit numbers along with considering the borrow.(8085 Microprocessor Program) Flowchart/Algorithm Program Address Mnemonics Operand Opcode Comments 2000 LXI H, 3000H 21 Load H-L pair with address 3000H. 2001 00 2002 30 2003 MOV A, M 7E Move the 1st operand from memory to […]

Continue Reading

Program to Sort the array in Descending Order

Q. Write an 8085 program and draw a flowchart to Sort the array in Descending Order.(8085 Microprocessor Program) Flowchart/Algorithm Program Address Mnemonics Operand Opcode Comments 2000 MVI B, 05H 06 Initialize counter-1. 2001 05 2002 MVI C, 05H 0E Initialize counter-2. 2003 05 2004 LXI H, 3000H 21 Load H-L pair with address 3000H. 2005 […]

Continue Reading