IA-32 Assembly Language Reference Manual

Packed Decimal Transfer Instructions

Packed Decimal (BCD) Load (fbld)

fbld
Example

Convert the source operand (BCD) into extended-real and push it onto the floating-point stack.

fbld 2(%ecx)

Packed Decimal (BCD) Store and Pop (fbstp)

fbstp
Example

Convert the value in stack element 0 to a packed decimal integer and store the result in register ECX with an offset of 2, and pop the stack.

fbstp 2(%ecx)