Difference between revisions of "Assembler:Commands:FDIV"
(3 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
+ | [[Category:Assembler]] | ||
'''command''' fdiv ''size'' ''source'' | '''command''' fdiv ''size'' ''source'' | ||
Line 11: | Line 12: | ||
Divides the destination operand by the source operand and stores the result in the destination location. The destination operand (dividend) is always in an FPU register; the source operand (divisor) can be a register or a memory location. Source operands in memory can be in single precision or double-precision floating-point format, word or double word integer format. | Divides the destination operand by the source operand and stores the result in the destination location. The destination operand (dividend) is always in an FPU register; the source operand (divisor) can be a register or a memory location. Source operands in memory can be in single precision or double-precision floating-point format, word or double word integer format. | ||
− | |||
</div> | </div> | ||
Line 43: | Line 43: | ||
fstp qword ptr [SomeSymbol] | fstp qword ptr [SomeSymbol] | ||
− | + | {{AssemblerCommandSeeAlso}} | |
− | |||
− | |||
− | |||
− | + | {{Template:AssemblerCommandExternalLinks}} | |
− | |||
− | |||
− | |||
− |
Latest revision as of 15:20, 3 January 2018
command fdiv size source
Performs a single precision or double-precision floating-point division of two operands.
Divides the destination operand by the source operand and stores the result in the destination location. The destination operand (dividend) is always in an FPU register; the source operand (divisor) can be a register or a memory location.
FPU flags affected. C1 Set to 0 if stack underflow occurred. Set if result was rounded up; cleared otherwise. C0, C2, C3 Undefined.
Divides the destination operand by the source operand and stores the result in the destination location. The destination operand (dividend) is always in an FPU register; the source operand (divisor) can be a register or a memory location. Source operands in memory can be in single precision or double-precision floating-point format, word or double word integer format.
Command Parameters[edit]
Parameter | Description |
---|---|
size | The data size |
source | The dividend operand |
Examples[edit]
fdiv st(1)
fdiv dword ptr [00123ABC]
fdiv dword ptr [SomeSymbol]
fld dword ptr [00123ABC] fdiv dword ptr [SomeSymbol] fstp dword ptr [00123ABC]
fld qword ptr [SomeSymbol] fdiv qword ptr [00123ABC] fstp qword ptr [SomeSymbol]