0% found this document useful (0 votes)
33 views1 page

Conversie Din Binar (16 Biti) in Zecimal Neimpachetat/impachetat (Binzn/binbcd)

This document provides code to convert a 16-bit binary number to an unpacked/packed decimal number. The code divides the binary number by 100 to extract the hundreds place value, uses arithmetic to convert to decimal and stores in memory, then repeats the process for the tens and ones places, and finally returns having converted the full binary number to decimal format in memory.

Uploaded by

irinarm
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOC, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
33 views1 page

Conversie Din Binar (16 Biti) in Zecimal Neimpachetat/impachetat (Binzn/binbcd)

This document provides code to convert a 16-bit binary number to an unpacked/packed decimal number. The code divides the binary number by 100 to extract the hundreds place value, uses arithmetic to convert to decimal and stores in memory, then repeats the process for the tens and ones places, and finally returns having converted the full binary number to decimal format in memory.

Uploaded by

irinarm
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOC, PDF, TXT or read online on Scribd
You are on page 1/ 1

Conversie din binar (16 biti) in zecimal neimpachetat/impachetat (binzn/binbcd) binzn proc near push bx push dx push di mov

bx, 100 mov dx, 0 div dx push ax mov ax, dx aam stosb mov al, ah stosb pop ax mov dx, 0 div bx push ax mov ax, dx aam stosb pop al, ah stosb pop ax stosb pop di pop dx pop bx ret endp

binzn

You might also like