This is a collection of Intel®’ IA32® Software Developer's Manuals (URL of the day) and AMD' AMD64 Architecture Programmer's Manual together with the related specifications, application notes, white papers, and change logs. The collection aims to keep all available revisions. It was originally created by Michal Necasek, see OS/2 Museum.

If you have a public document, related to the IA32® specifications and missing from the collection, please mail it to me. The content of this URL and all sub-ULRs is available for convenient bulk download by rsync x86docs password "" (empty).

STC -- AArch32

STC

Store data to System register calculates an address from a base register value and an immediate offset, and stores a word from the DBGDTRRXint System register to memory. It can use offset, post-indexed, pre-indexed, or unindexed addressing. For information about memory accesses, see Memory accesses.

In an implementation that includes EL2, the permitted STC access to DBGDTRRXint can be trapped to Hyp mode, meaning that an attempt to execute an STC instruction in a Non-secure mode other than Hyp mode, that would be permitted in the absence of the Hyp trap controls, generates a Hyp Trap exception. For more information, see HDCR.TDA.

For simplicity, the STC pseudocode does not show this possible trap to Hyp mode.

It has encodings from the following instruction sets: A32 ( A1 ) and T32 ( T1 ) .

A1

313029282726252423222120191817161514131211109876543210
!= 1111110PU0W0Rn01011110imm8
condDLCRdcp15

Encoding for the Offset variant

Applies when (P == 1 && W == 0)

STC{<c>}{<q>} p14, c5, [<Rn>{, #{+/-}<imm>}]

Encoding for the Post-indexed variant

Applies when (P == 0 && W == 1)

STC{<c>}{<q>} p14, c5, [<Rn>], #{+/-}<imm>

Encoding for the Pre-indexed variant

Applies when (P == 1 && W == 1)

STC{<c>}{<q>} p14, c5, [<Rn>, #{+/-}<imm>]!

Encoding for the Unindexed variant

Applies when (P == 0 && U == 1 && W == 0)

STC{<c>}{<q>} p14, c5, [<Rn>], <option>

Decode for all variants of this encoding

if P == '0' && U == '0' && W == '0' then Undefined(); end; let n : integer = UInt(Rn); let cp : integer = 14; let imm32 : bits(32) = ZeroExtend{}(imm8::'00'); let index : boolean = (P == '1'); let add : boolean = (U == '1'); let wback : boolean = (W == '1'); if n == 15 && (wback || CurrentInstrSet() != InstrSet_A32) then UnpredictableProcedure(); end;

CONSTRAINED UNPREDICTABLE behavior

If n == 15 && wback, then one of the following behaviors must occur:

T1

15141312111098765432101514131211109876543210
1110110PU0W0Rn01011110imm8
DLCRdcp15

Encoding for the Offset variant

Applies when (P == 1 && W == 0)

STC{<c>}{<q>} p14, c5, [<Rn>{, #{+/-}<imm>}]

Encoding for the Post-indexed variant

Applies when (P == 0 && W == 1)

STC{<c>}{<q>} p14, c5, [<Rn>], #{+/-}<imm>

Encoding for the Pre-indexed variant

Applies when (P == 1 && W == 1)

STC{<c>}{<q>} p14, c5, [<Rn>, #{+/-}<imm>]!

Encoding for the Unindexed variant

Applies when (P == 0 && U == 1 && W == 0)

STC{<c>}{<q>} p14, c5, [<Rn>], <option>

Decode for all variants of this encoding

if P == '0' && U == '0' && W == '0' then Undefined(); end; let n : integer = UInt(Rn); let cp : integer = 14; let imm32 : bits(32) = ZeroExtend{}(imm8::'00'); let index : boolean = (P == '1'); let add : boolean = (U == '1'); let wback : boolean = (W == '1'); if n == 15 && (wback || CurrentInstrSet() != InstrSet_A32) then UnpredictableProcedure(); end;

CONSTRAINED UNPREDICTABLE behavior

If n == 15, then one of the following behaviors must occur:

For more information about the CONSTRAINED UNPREDICTABLE behavior of this instruction, see Architectural Constraints on UNPREDICTABLE behaviors.

Assembler Symbols

<c>

See Standard assembler syntax fields.

<q>

See Standard assembler syntax fields.

<Rn>

For the "A1 Offset" and "A1 Unindexed" variants: is the general-purpose base register, encoded in the "Rn" field. The PC can be used, but this is deprecated.

For the "A1 Post-indexed", "A1 Pre-indexed", "T1 Offset", "T1 Post-indexed", "T1 Pre-indexed", and "T1 Unindexed" variants: is the general-purpose base register, encoded in the "Rn" field.

+/-

Specifies the offset is added to or subtracted from the base register, defaulting to + if omitted and encoded in U:

U +/-
0 -
1 +
<imm>

Is the immediate offset used for forming the address, a multiple of 4 in the range 0-1020, defaulting to 0 and encoded in the "imm8" field, as <imm>/4.

<option>

Is an 8-bit immediate, in the range 0 to 255 enclosed in { }, encoded in the "imm8" field. The value of this field is ignored when executing this instruction.

Operation

if ConditionPassed() then EncodingSpecificOperations(); let offset_addr : bits(32) = if add then (R(n) + imm32) else (R(n) - imm32); let address : bits(32) = if index then offset_addr else R(n); // System register read from DBGDTRRXint. AArch32_SysRegRead(cp, ThisInstr(), address[31:0]); if wback then R(n) = offset_addr; end; end;

Operational information

This instruction is a data-independent-time instruction as described in About the DIT bit.


2025-09_rel_asl1 2026-03-12 12:57:38

Copyright © 2010-2025 Arm Limited or its affiliates. All rights reserved. This document is Non-Confidential.