Difference between revisions of "Assembler:Commands:FDIV"

From Cheat Engine
Jump to navigation Jump to search
 
Line 12: 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.
  
[http://x86.renejeschke.de/html/file_module_x86_id_91.html x86.renejeschke.de/html/file_module_x86_id_91.html]
 
 
</div>
 
</div>
  
Line 46: Line 45:
 
{{AssemblerCommandSeeAlso}}
 
{{AssemblerCommandSeeAlso}}
  
== External links ==
+
{{Template:AssemblerCommandExternalLinks}}
* [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]
 
* [http://x86.renejeschke.de/ x86.renejeschke.de]
 
* [http://www.asmpedia.org/index.php?title=Main_Page asmpedia.org]
 
* [http://ref.x86asm.net/ ref.x86asm.net]
 

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]

See also[edit]

External links[edit]