sthepx

Store Halfword by External Process ID Indexed

sthepx RS, RA, RB

Stores a halfword using the External PID.

Formerly listed on this site as sthep; the old address leads here. Renamed to sthepx, the name binutils and Power ISA 2.07B (Book III-E) give the instruction; sthep is in neither.

Encoding

Binary Layout
31
0:5
RS
6:10
RA
11:15
RB
16:20
415
21:30
/
31
 
Format X-form
Opcode 0x7C00033E
Extension Embedded

Operands

  • RS
    Source
  • RA
    Base
  • RB
    Index

Example

sthepx r3, r4, r5

Related

More in Embedded

Reference

Not in Power ISA v3.1C

Description

Not in Power ISA v3.1C: this is an embedded-core instruction, and the encoding shown is binutils' (opcodes/ppc-opc.c), not the manual's. Stores a halfword (16-bit value) to memory using an address formed by adding RA and RB, performing the store using the External PID for address translation in embedded environments. The least significant halfword of RS is written to memory. No condition flags are affected.

Operation

EA ← (RA) + (RB)
[EA + 0:1] ← (RS)[48:63]