Assembler:Commands:FDIV

From Cheat Engine
Jump to navigation Jump to search

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]