![](/uploads/1/2/7/3/127342505/151290751.jpg)
Thus the program for Binary to BCD Conversion using 8085 was executed. An assembly language program to convert a 8-bit Binary number to ASCII Code. Binary to text (ASCII) Here you can convert binary to text. The translation will convert the binary code to decimal and then use the ASCII table to represent the characters behind that decimal codes. Below you can learn how to do the conversion yourself and even how to implement such converter in C.
AIM
To prepare a program for 8085 to convert a decimal number to its corresponding ASCII numberand to convert a given ASCII TO decimal.
![Ascii Ascii](/uploads/1/2/7/3/127342505/929303375.png)
PROGRAM FOR DECIMAL TO ASCII CONVERSION
LDA 4200
CPI 0A
JC LABEL1 Lagu sholawat mp3.
ADI 30
JMPLABEL2
Roland jv-1080 vst download. LABEL1:MVI A,EE
LABEL2:STA 4201
HLT
SAMPLE OUTPUT:
ADDRESS | DATA | INPUT/OUTPUT |
4200 | 01 | Input |
4201 | 31 | Output |
PROGRAM FOR ASCII TO DECIMAL CONVERSION
LDA 4200
SUI 30
JCLABEL2
CPI 0A
JC LABEL1
LABEL2:MVI A,EE
LABEL1:STA 4201
HLT
SAMPLE OUTPUT
ADDRESS | DATA | INPUT/OUTPUT |
4200 | 36 | Input |
4201 | 06 | Output |
RESULT
A program to convert decimal to ascii and ascii to decimal was prepared and output obtained.
LXI SP,330AH;initiate stack pointerLXI H,4350H;pointer to input table of BCD numberLXI B,4360H;pointer to output table of equivalent binaryNEXTBYTE:MOV A,M;get BCD numberCALL BCTBIN;call BCTBBIN conversion subroutineSTAX B;store binary number to output tableMOV A,L;copy reg.
![](/uploads/1/2/7/3/127342505/151290751.jpg)