microprocessor lab manual

Lab Manuals

8085 program-Ascii to Decimal conversion

AIM To prepare a program for 8085 to convert a decimal number to its corresponding ASCII number and to convert a given ASCII TO decimal. PROGRAM FOR DECIMAL TO ASCII CONVERSION LDA 4200 CPI 0A JC LABEL1 ADI 30 JMP LABEL2 LABEL1:MVI A,EE LABEL2:STA 4201 HLT SAMPLE OUTPUT: ADDRESS DATA INPUT/OUTPUT 4200 01 Input 4201 […]

Lab Manuals

Program to seperate bytes to nibbles in 8085

AIM:To prepare an assembly language program for 8085 to  separate  the nibbles of an 8 bit number. PROGRAM: MVI C,00 LDA 4200 MOV C,A ANI OF STA 4201 MOV A,C ANI F0 RRC RRC RRC RRC STA 4202 HLT SAMPLE OUTPUT ADDRESS DATA INPUT/OUTPUT 4200 A3 INPUT 4201 03 OUTPUT 4202 0A OUTPUT RESULT:A program

Lab Manuals

Square root of an 8 bit number in 8085

AIM To prepare an assembly language program  to find the square root of an 8 bit number for 8085 microprocessor PROGRAM MVI C,01 MVI E,01 LDA 4200 LABEL:SUBB C JZ LABEL1 INR C INR C INR E JMP LABEL LABEL1:MOV A,E STA 4201 HLT SAMPLE OUTPUT ADDRESS DATA INPUT/OUTPUT 4200 10 Input 4201 04 Output

Lab Manuals

Division of Two 8 bit numbers in 8085

AIM:To prepare an assembly language program for 8085 to multiply two 8 bit numbers PROGRAM MVI C,00 LDA 4200 MOV B,A LDA 4201 LABEL:SUBB B INR C JNC LABEL DCR C ADD B STA 4202 MOV A,C STA 4203 HLT SAMPLE OUTPUT ADDRESS DATA INPUT/OUTPUT 4200 02 Input 4201 05 Input 4202 01 Output 4203

Lab Manuals

Multiplication of Two 8 bit numbers in 8085

AIM To prepare an assembly language program for 8085 to multiply two 8 bit numbers PROGRAM MVI C,00 LDA 4200 MOV B,A LDA 4201 MOV A,D MVI A,00 LABEL:ADD B DCR D JNZ LABEL JNC LOOP INR C LOOP:STA 4202 MOV A,C STA 4203 HLT SAMPLE OUTPUT ADDRESS DATA INPUT/OUTPUT 4200 04 Input 4201 02

Lab Manuals

Addition of Two 16 bit numbers in 8085

AIM:To prepare a program to add two 16 bit numbers for 8085 PROGRAM MVI E,00 LHLD 4200 MOV C,L MOV B,H LHLD 4202 DAD B JNC LABEL1 INR E LABEL1:SHLD 4204 MOV A,E STA 4206 HLT SAMPLE OUTPUT ADDRESS DATA INPUT/OUTPUT 4200 F6 Input 4201 A3 Input 4202 2F Input 4203 B4 Input 4204 25

Lab Manuals

Addition of Two 8 bit numbers in 8085

AIM To add two 8 bit numbers using 8085 microprocessor PROGRAM MV1 C,00 LDA 4200 MOV B,A LDA 4201 ADD B JNC LABEL1 INRC LABEL1:STA 4202 MOV A,C STA 4203 HLT SAMPLE OUTPUT ADDRESS DATA INPUT/OUTPUT 4200 15 Input 4201 27 Input 4202 3C Output(sum) 4203 00 Output(carry) RESULT A program to add two 8

Scroll to Top