0% found this document useful (0 votes)
20 views2 pages

Împartirea A Doua Numere, Zecimal Neimpachetate Pe 16 Biti (Divzn16)

This document appears to be describing a 16-bit division algorithm for dividing two decimal numbers represented as 16-bit values. It pushes registers onto the stack, moves the numerator and denominator values into registers, multiplies the denominator to extend its range, adds this value to the numerator, divides the extended numerator by the denominator, and stores the result while handling remainders and comparisons to determine when division is complete.

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)
20 views2 pages

Împartirea A Doua Numere, Zecimal Neimpachetate Pe 16 Biti (Divzn16)

This document appears to be describing a 16-bit division algorithm for dividing two decimal numbers represented as 16-bit values. It pushes registers onto the stack, moves the numerator and denominator values into registers, multiplies the denominator to extend its range, adds this value to the numerator, divides the extended numerator by the denominator, and stores the result while handling remainders and comparisons to determine when division is complete.

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/ 2

mpartirea a doua numere, zecimal neimpachetate pe 16 biti (divzn16) divzn16 proc near

push bx push cx aad mov cx, ax mov ax, dx aad mov dl, 100 mul dl add cx, ax mov ax, bx aad mov bl, al mov ax, cx div bl mov bl, 99 cmp bl, al jc gata cmp bl, ah jc gata mov bl, al mov al, ah aam mov dx, ax mov al, bl aam

clc gata: pop cx pop bx ret divzn16 endp

You might also like