Published: 19 Oct 2021 › Updated: 19 Oct 2021
How to convert BCD into binary in 8086 Microprocessor?
To convert BCD into binary.
Code:
DATA_SEG SEGMENT
BCD DB 20H ; STORAGE FOR A BCD VALUE
BIN DB ? ; STORAGE FOR BINARY VALUE
DATA_SEG ENDS
CODE_SEG SEGMENT
ASSUME CS:CODE_SEG,DS:DATA_SEG
START:
MOV AX,DATA_SEG
MOV DS,AX
MOV AH,BCD
MOV BH,AH
AND BH,0FH
AND AH,0F0H
ROR AH,04
MOV CL,10
MOV AL,AH
AND AX,00FFH
MUL CL
ADD AL,BH
MOV BIN,AL
MOV AH,04CH
INT 21H
CODE_SEG ENDS
END START
Output:
Leave How to convert BCD into binary in 8086 Microprocessor? to:
Read more #stemgeeks posts
Best Posts From jazzbel
We have not curated any of jazzbel1's posts yet. But you can encourage our curation team to review posts by visiting them regularly and by referring other readers. Because we give priority to frequently read content.
More Posts From jazzbel
- Splinterlands Season End Reward...
- Back to Splinterlands grind after long time....
- CHAOES LEGION PACK OPENING....
- Splinterlands Season Ends Rewards - Bronze II | November 30 2021
- Splinterlands game week 2 update 2..
- Bhaktapur Durbar Square ,Nepal
- Splinterlands game week 2 update....
- Splinterlands game week 1 update 2 ..
- Splinterlands game week 1 update and season end rewards .....
- Splinterlands game week 2 update 1 ..
- Splinterlands game week 1 update 2 ..
- Splinterlands game week 1 update..
- How to write Queries in Database mangament system???
- An Assembly level language program to find smallest and largest number in Microprocessor 8086.
- End of the season Rewards..
- Binary Tree Traversal:How to find Preorder,Inorder And Postorder.
- To show step by step evaluation of the given array using Merge Sort algorithm.
- To search an element in a given array of elements using linear search and recursive binary search.
- How to convert BCD into binary in 8086 Microprocessor?
- First week of Splinterlands experience..