Difference between revisions of "Assembler:Commands:FDIV"
(Created page with ''''command''' fdiv ''size'' ''source'' Performs a single precision or double-precision floating-point division of two operands. Divides the destination operand by the source op…') |
|||
Line 51: | Line 51: | ||
* [https://wikipedia.org/wiki/X86_instruction_listings wikipedia.org/wiki/X86_instruction_listings] | * [https://wikipedia.org/wiki/X86_instruction_listings wikipedia.org/wiki/X86_instruction_listings] | ||
* [https://wikibooks.org/wiki/X86_Assembly/Other_Instructions wikibooks.org/wiki/X86_Assembly/Other_Instructions] | * [https://wikibooks.org/wiki/X86_Assembly/Other_Instructions wikibooks.org/wiki/X86_Assembly/Other_Instructions] | ||
+ | * [http://x86.renejeschke.de/ x86.renejeschke.de] | ||
* [http://www.asmpedia.org/index.php?title=Main_Page asmpedia.org] | * [http://www.asmpedia.org/index.php?title=Main_Page asmpedia.org] |
Revision as of 04:11, 15 March 2017
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
Parameter | Description |
---|---|
size | The data size |
source | The dividend operand |
Examples
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]