dcffi

Decimal Convert From Fixed (Single Precision)

dcffi FRT,FRB
Rc=0

Converts a 64-bit signed binary integer to a DFP Long value.

Details

The 64-bit signed binary integer in FRB is converted and rounded to a DFP Long value and placed into FRT. The sign of the result is the same as the sign of the source operand. The ideal exponent is zero.

Pseudocode Operation

if 'dcffi' then
    FRT <- ConvertToDFPLong(FRB)
else if 'dcffi.' then
    FRT <- ConvertToDFPLong(FRB)
    UpdateCR1BasedOnResult(FRT)

Programming Note

When Rc=1, CR1 is set from the FPSCR[FX, FEX, VX, OX] bits immediately after the operation completes.

Example

dcffi f1, f3

Encoding

Binary Layout
59
0
FRT
6
/
11
FRB
16
802
21
Rc
31
 
Format X-form
Opcode 0xEC000644
Extension Decimal Floating-Point
Registers Altered FPSCR, (FPRF, FR, FI, FX, XX), CR1, CR0

Operands

  • FRT
    Target Floating-Point Register
  • FRB
    Source Floating-Point Register