8085 program-Ascii to Decimal conversion

jojo January 18, 2011 2 Comments

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

31

Output

PROGRAM FOR ASCII TO DECIMAL CONVERSION

LDA 4200

SUI 30

JC LABEL2

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.

Comments
  • kanni
    May 9, 2011

    HI i want a micro controller with all the English words stored in it pls suggest me such one i want it all the English words stored as voice not words or letters else in which micro controller i can store it and how pls suggest me the one to my mail id blacingcat313@gmail.com

  • Techone
    November 13, 2010

    One question ?
    Where I can buy a 8085A CPU and its supporting friends ( PIA 8155, 8255 , UART 8150, DMA 8175 ? ) in CANADA. or US ?

Leave a Reply

Your email address will not be published. Required fields are marked *