Programming the 8085
Home
Graphics
C++
Data Structures
Friday, August 13, 2010
Binary to Ascii
22. Convert binary to ascii
4100 21 00 50 LXI H,5000H 4103 7E MOV A,M 4104 47 MOV B,A 4105 0F RRC 4106 0F RRC 4107 0F RRC 4108 0F RRC 4109 CD 15 41 CALL ASCII 410C 23 INX H 410D 77 MOV M,A 410E 78 MOV A,B 410F CD 15 41 CALL ASCII 4112 23 INX H 4113 77 MOV M,A 4114 76 HLT 4115 E6 0F ASCII: ANI 0FH 4117 FE 0A CPI 0AH 4119 DA 1E 41 JC CODE 411C C6 07 ADI 07H 411E C6 30 CODE: ADI 30H 4120 C9 RET
Sample output
Before Execution 5000-->A2 After execution 5001-->41 5002-->32
2 comments:
aravind
August 7, 2013 at 9:31 AM
how to check the output
Reply
Delete
Replies
Reply
Unknown
September 1, 2013 at 9:21 AM
use 8085 simulator
Reply
Delete
Replies
Reply
Add comment
Load more...
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
how to check the output
ReplyDeleteuse 8085 simulator
ReplyDelete