Hello im using masm to divide two numbers and get a divide overflow error once I execute the file. I don't see why I am getting that output when the quotient is not larger then 16 digits. Why am i getting a overflow error?
Here is the code
title Overflow Program (overflow.asm)
.model small
.stack 100h
.data
.code
main proc
mov ax,@data
mov ds,ax
mov ax,44 ; place 44 in ax reg
mov bx,2 ; place 2 in bx reg
div bx ; div 44 by 2 place quotient in ax and remainder in dx
mov ax,4C00h
int 21h
main endp
end main