I want to divide the 32 bit number to 16 bit number(in bx).
16 bit up of the 32 bit number is in dx and 16 bit down of it is in ax ,the code should put 16 up bit of quotient in dx and 16 down bit of quotient in ax and reminder in bx
what should I do ??
thanks

my code so far ?
div bx

mov cx , ax
mov ax , dx
mov dx , cx
div bx

mov bx , ah

is it true ?

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.