mffs

Move From FPSCR

mffs FRT
mffs. FRT

Moves the contents of the Floating-Point Status and Control Register (FPSCR) into a floating-point register.

Details

Moves the contents of the Floating-Point Status and Control Register (FPSCR) into floating-point register FRT. If Rc=1 (mffs.), the instruction updates CR1 based on the moved FPSCR value. This is a privileged instruction that does not alter FPSCR itself.

Pseudocode Operation

FRT ← FPSCR
if Rc = 1 then
  CR1 ← (FRT[0:3])

Programming Note

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

Extended Mnemonics

Extended Mnemonic Equivalent Instruction

Example

mffs f1

Encoding

Binary Layout
63
0
FRT
6
/
11
/
16
583
21
Rc
31
 
Format X-form
Opcode 0xFC00048E
Extension Floating-Point
Registers Altered FPSCR, CR1, (if, Rc=1), CR0

Operands

  • FRT
    Target