swc1

Operands

$freg, [imm($reg) / LO(id) / ($reg) / imm / id / id($reg) / id+imm / id+imm($reg)], ($reg)

Store word from FP register : Writes the 32-bit value in FP register $f1 to memory at address ($t2 + offset). Typically used to store a single-precision float to memory. Address must be word-aligned.

Variants

  • Store word from FP register : Writes the 32-bit value in FP register $f1 to memory at address ($t2 + offset). Typically used to store a single-precision float to memory. Address must be word-aligned. swc1 $f1,-100($t2)
  • Store to Address : Write to label's address, reached through the %hi already in $t2 swc1 $f1,%lo(label)($t2)
  • Store Word Coprocessor 1 : Store 32-bit value from $f1 to effective memory word address swc1 $f1,($t2)
  • Store Word Coprocessor 1 : Store 32-bit value from $f1 to effective memory word address swc1 $f1,-100
  • Store Word Coprocessor 1 : Store 32-bit value from $f1 to effective memory word address swc1 $f1,100000
  • Store Word Coprocessor 1 : Store 32-bit value from $f1 to effective memory word address swc1 $f1,100000($t2)
  • Store Word Coprocessor 1 : Store 32-bit value from $f1 to effective memory word address swc1 $f1,label
  • Store Word Coprocessor 1 : Store 32-bit value from $f1 to effective memory word address swc1 $f1,label($t2)
  • Store Word Coprocessor 1 : Store 32-bit value from $f1 to effective memory word address swc1 $f1,label+100000
  • Store Word Coprocessor 1 : Store 32-bit value from $f1 to effective memory word address swc1 $f1,label+100000($t2)
.data
value: .float 0.0
source: .float 3.5
.text
# Store 3.5 into value. Inspect memory at value: 3.5 is stored as IEEE-754 raw bits 0x40600000.
l.s $f0, source
la $t0, value
swc1 $f0, 0($t0)