19 Nov MICROPROCESSOR & MICROCONTROLLER LAB MANUAL MICROPROCESSOR PROGRAMS NAKUMAR. M.E. 3 Sep A microprocessor is a clock-driven semiconductor device consisting of electronic Counter should count numbers from Flowchart for Program. MICROPROCESSOR 1) Start the program by loading the first data into Accumulator. To perform the subtraction of two 8 bit numbers using

Author: Brazilkree Fauzuru
Country: Dominican Republic
Language: English (Spanish)
Genre: Medical
Published (Last): 4 February 2013
Pages: 363
PDF File Size: 18.80 Mb
ePub File Size: 7.87 Mb
ISBN: 568-4-17189-512-2
Downloads: 18188
Price: Free* [*Free Regsitration Required]
Uploader: Maubei

Press NEXT key, you will find that the next memory address is automatically displayed v.

If the sum is larger than eight bits FFHit sets the carry flag. Type micropprocessor starting address of the prgram in the address field iii.

Type h in the address field iii. Provrams Check the Output: The third instruction increments the memory pointer HL register and now it will contain h The 4th instruction reads a byte from memory location h and load it in register B. The 2nd instruction reads a byte from memory and loads it in accumulator A.

Press 8085 microprocessor programs with flowchart and type the opcode in the data field. Addition of two 8-bit numbers with carry.

Program to Add two 8-bit numbers along with Carry

Press GO key on the Kit ii. The third instruction ADD C has the opcode 81 stored at addressafter this instruction is executed the result get stored in accumulator.

The opcode is To check the result: The instruction is stored in memory at location, and So it points to h. The result 4A is seen in the data field of the 7-segment display.

The fourth instruction STA h is used to store the result content of accumulator in memory at location h and this instruction having opcode 32 is a 3 byte instruction stored at location8085 microprocessor programs with flowchart The last instruction HLT is used to end the execution of the program. The pcode 7E microprocessoe stored in memory at location Type the starting address in the address field of the 7-segment display iii. Entering the the number in the memory: To execute the program: Press NEXT key on the kit.

The opcode for this instruction is 0E microprcessor is stored at addressthe 8-bit operand B7h get stored at location Type the next opcode in the 8085 microprocessor programs with flowchart field of the display vi.

The output can be verified as: The program to add two 8-bit numbers stored in memory is shown below along with the opcode and the physical locations where the program will be loaded in memory.

Program to Add two 8-bit numbers along with Carry | Electricalvoice

The 5th instruction adds the content of register A and B. The theory is explained at the begining of the 1st approach. WAP using and verify for: The 1st instruction LXI H, h is a 3 byte instruction. The letter ‘E’ will be displayed in the 7-segment address field to indicate that the 8085 microprocessor programs with flowchart executed successfully.

The next 8085 microprocessor programs with flowchart at location having opcode 23 increments the HL pair. Entering the Program in memory of Programmer kit: Program Listing for 1st Method using the immediate 8-bit data: The two 8-bit numbers are stored 8085 microprocessor programs with flowchart memory location h and h and the result withh addition is to be save in memory at location The 1st instruction MVI A,93h, which is a two byte instruction, loads an immediate byte 93h in the accumulator.

The flowchart to add two 8-bit numbers is shown below: Peograms program given below gives the complete listing of the addition of two 8-bit numbers, the program listed below also shows the the machine opcode and the addresses where the program is to be loaded in memory.