202k views
2 votes
When using the DIV instruction and a 64-bit divisor, the quotient is stored in ________________ and the remainder in _____________________

User Iliaden
by
8.7k points

1 Answer

2 votes

Final answer:

The quotient is stored in the general-purpose registers, and the remainder is stored in the remainder register.

Step-by-step explanation:

When using the DIV instruction and a 64-bit divisor in assembly language programming, the quotient is stored in the general-purpose registers and the remainder is stored in the remainder register. In x86 assembly language, the EAX register is typically used to hold the quotient, while the EDX register is used to hold the remainder.

For example, if we have the following code:

mov eax, 10
mov edx, 0
div qword ptr divisor

The quotient, in this case, would be stored in the EAX register and the remainder in the EDX register.

User Greg Answer
by
7.0k points