<?xml-stylesheet type="text/xsl" encoding="UTF-8" href="iform.xsl" version="1.0"?>
<!DOCTYPE instructionsection PUBLIC "-//ARM//DTD instructionsection //EN" "iform-p.dtd">
<!-- Copyright (c) 2010-2025 Arm Limited or its affiliates. All rights reserved. -->
<!-- This document is Non-Confidential. This document may only be used and distributed in accordance with the terms of the agreement entered into by Arm and the party that Arm delivered this document to. -->
<instructionsection id="STC" title="STC -- AArch32" type="instruction">
  <docvars>
    <docvar key="instr-class" value="general"/>
    <docvar key="mnemonic" value="STC"/>
  </docvars>
  <heading>STC</heading>
  <desc>
    <brief>
      <para>Store data to System register</para>
    </brief>
    <authored>
      <para>Store data to System register calculates an address from a base
register value and an immediate offset, and stores a word from the
<xref linkend="ARMARM_AArch32.dbgdtrrxint">DBGDTRRXint</xref> System register to
memory. It can use offset, post-indexed, pre-indexed, or unindexed
addressing. For information about memory accesses, see
<xref linkend="ARMARM_Chddjfjf">Memory accesses</xref>.</para>
      <para>In an implementation that includes EL2, the permitted <instruction>STC</instruction>
access to <xref linkend="ARMARM_AArch32.dbgdtrrxint">DBGDTRRXint</xref> can be
trapped to Hyp mode, meaning that an attempt to execute an <instruction>STC</instruction>
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
<xref linkend="ARMARM_AArch32.hdcr">HDCR</xref>.TDA.</para>
      <para>For simplicity, the <instruction>STC</instruction> pseudocode does not show this possible
trap to Hyp mode.</para>
    </authored>
    <encodingnotes>
      <para>For more information about the <arm-defined-word>CONSTRAINED UNPREDICTABLE</arm-defined-word> behavior of this instruction, see <xref linkend="ARMARM_CJAEGDJC">Architectural Constraints on UNPREDICTABLE behaviors</xref>.</para>
    </encodingnotes>
  </desc>
  <operationalnotes>
    <operationalnote>
      <operationalnote_content>
        <para>This instruction is a data-independent-time instruction as described in <xref linkend="ARMARM_BEIIDCEG">About the DIT bit</xref>.</para>
      </operationalnote_content>
    </operationalnote>
  </operationalnotes>
  <alias_list howmany="0"/>
  <classes>
    <classesintro count="2">
      <txt>It has encodings from the following instruction sets:</txt>
      <txt> A32 (</txt>
      <a href="#iclass_a1">A1</a>
      <txt>)</txt>
      <txt> and </txt>
      <txt> T32 (</txt>
      <a href="#iclass_t1">T1</a>
      <txt>)</txt>
      <txt>.</txt>
    </classesintro>
    <iclass name="A1" oneof="2" id="iclass_a1" no_encodings="4" isa="A32">
      <docvars>
        <docvar key="armarmheading" value="A1"/>
        <docvar key="instr-class" value="general"/>
        <docvar key="isa" value="A32"/>
        <docvar key="mnemonic" value="STC"/>
      </docvars>
      <iclassintro count="4"/>
      <regdiagram form="32" psname="A32.cops_as.sysldst_mov64.ldstcp.STC_A1_off" tworows="1">
        <box hibit="31" width="4" name="cond" usename="1" settings="4" constraint="!= 1111">
          <c colspan="4">!= 1111</c>
        </box>
        <box hibit="27" width="3" settings="3">
          <c>1</c>
          <c>1</c>
          <c>0</c>
        </box>
        <box hibit="24" width="1" name="P" usename="1">
          <c colspan="1"/>
        </box>
        <box hibit="23" width="1" name="U" usename="1">
          <c colspan="1"/>
        </box>
        <box hibit="22" name="D" usename="1" settings="1" psbits="x">
          <c>0</c>
        </box>
        <box hibit="21" width="1" name="W" usename="1">
          <c colspan="1"/>
        </box>
        <box hibit="20" name="L" usename="1" settings="1" psbits="x">
          <c>0</c>
        </box>
        <box hibit="19" width="4" name="Rn" usename="1">
          <c colspan="4"/>
        </box>
        <box hibit="15" width="4" name="CRd" usename="1" settings="4" psbits="xxxx">
          <c>0</c>
          <c>1</c>
          <c>0</c>
          <c>1</c>
        </box>
        <box hibit="11" width="3" settings="3">
          <c>1</c>
          <c>1</c>
          <c>1</c>
        </box>
        <box hibit="8" name="cp15" usename="1" settings="1" psbits="x">
          <c>0</c>
        </box>
        <box hibit="7" width="8" name="imm8" usename="1">
          <c colspan="8"/>
        </box>
      </regdiagram>
      <encoding name="STC_A1_off" oneofinclass="4" oneof="8" label="Offset" bitdiffs="P == 1 &amp;&amp; W == 0">
        <docvars>
          <docvar key="armarmheading" value="A1"/>
          <docvar key="instr-class" value="general"/>
          <docvar key="isa" value="A32"/>
          <docvar key="address-form" value="base-plus-offset"/>
          <docvar key="address-offset" value="signed-offset"/>
          <docvar key="mnemonic" value="STC"/>
        </docvars>
        <box hibit="24" width="1" name="P">
          <c>1</c>
        </box>
        <box hibit="21" width="1" name="W">
          <c>0</c>
        </box>
        <asmtemplate><text>STC{</text><a hover="See x[Standard assembler syntax fields](Babbefhf)." link="cond__2">&lt;c&gt;</a><text>}{</text><a hover="See x[Standard assembler syntax fields](Babbefhf)." link="qw_option">&lt;q&gt;</a><text>}  p14, c5, [</text><a hover="For the &quot;A1 Offset&quot; and &quot;A1 Unindexed&quot; variants: is the general-purpose base register, encoded in the &quot;Rn&quot; field. The PC can be used, but this is deprecated." link="Rn__33">&lt;Rn&gt;</a><text>{, #{</text><a hover="Specifies the offset is added to or subtracted from the base register, defaulting to + if omitted and " link="plus_or_minus_option">+/-</a><text>}</text><a hover="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 &quot;imm8&quot; field, as &lt;imm&gt;/4." link="imm__100">&lt;imm&gt;</a><text>}]</text></asmtemplate>
      </encoding>
      <encoding name="STC_A1_post" oneofinclass="4" oneof="8" label="Post-indexed" bitdiffs="P == 0 &amp;&amp; W == 1">
        <docvars>
          <docvar key="armarmheading" value="A1"/>
          <docvar key="instr-class" value="general"/>
          <docvar key="isa" value="A32"/>
          <docvar key="address-form" value="post-indexed"/>
          <docvar key="mnemonic" value="STC"/>
        </docvars>
        <box hibit="24" width="1" name="P">
          <c>0</c>
        </box>
        <box hibit="21" width="1" name="W">
          <c>1</c>
        </box>
        <asmtemplate><text>STC{</text><a hover="See x[Standard assembler syntax fields](Babbefhf)." link="cond__2">&lt;c&gt;</a><text>}{</text><a hover="See x[Standard assembler syntax fields](Babbefhf)." link="qw_option">&lt;q&gt;</a><text>}  p14, c5, [</text><a hover="For the &quot;A1 Post-indexed&quot;, &quot;A1 Pre-indexed&quot;, &quot;T1 Offset&quot;, &quot;T1 Post-indexed&quot;, &quot;T1 Pre-indexed&quot;, and &quot;T1 Unindexed&quot; variants: is the general-purpose base register, encoded in the &quot;Rn&quot; field." link="Rn__32">&lt;Rn&gt;</a><text>], #{</text><a hover="Specifies the offset is added to or subtracted from the base register, defaulting to + if omitted and " link="plus_or_minus_option">+/-</a><text>}</text><a hover="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 &quot;imm8&quot; field, as &lt;imm&gt;/4." link="imm__100">&lt;imm&gt;</a></asmtemplate>
      </encoding>
      <encoding name="STC_A1_pre" oneofinclass="4" oneof="8" label="Pre-indexed" bitdiffs="P == 1 &amp;&amp; W == 1">
        <docvars>
          <docvar key="armarmheading" value="A1"/>
          <docvar key="instr-class" value="general"/>
          <docvar key="isa" value="A32"/>
          <docvar key="address-form" value="pre-indexed"/>
          <docvar key="mnemonic" value="STC"/>
        </docvars>
        <box hibit="24" width="1" name="P">
          <c>1</c>
        </box>
        <box hibit="21" width="1" name="W">
          <c>1</c>
        </box>
        <asmtemplate><text>STC{</text><a hover="See x[Standard assembler syntax fields](Babbefhf)." link="cond__2">&lt;c&gt;</a><text>}{</text><a hover="See x[Standard assembler syntax fields](Babbefhf)." link="qw_option">&lt;q&gt;</a><text>}  p14, c5, [</text><a hover="For the &quot;A1 Post-indexed&quot;, &quot;A1 Pre-indexed&quot;, &quot;T1 Offset&quot;, &quot;T1 Post-indexed&quot;, &quot;T1 Pre-indexed&quot;, and &quot;T1 Unindexed&quot; variants: is the general-purpose base register, encoded in the &quot;Rn&quot; field." link="Rn__32">&lt;Rn&gt;</a><text>, #{</text><a hover="Specifies the offset is added to or subtracted from the base register, defaulting to + if omitted and " link="plus_or_minus_option">+/-</a><text>}</text><a hover="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 &quot;imm8&quot; field, as &lt;imm&gt;/4." link="imm__100">&lt;imm&gt;</a><text>]!</text></asmtemplate>
      </encoding>
      <encoding name="STC_A1_unind" oneofinclass="4" oneof="8" label="Unindexed" bitdiffs="P == 0 &amp;&amp; U == 1 &amp;&amp; W == 0">
        <docvars>
          <docvar key="address-form" value="unindexed"/>
          <docvar key="armarmheading" value="A1"/>
          <docvar key="instr-class" value="general"/>
          <docvar key="isa" value="A32"/>
          <docvar key="mnemonic" value="STC"/>
        </docvars>
        <box hibit="24" width="1" name="P">
          <c>0</c>
        </box>
        <box hibit="23" width="1" name="U">
          <c>1</c>
        </box>
        <box hibit="21" width="1" name="W">
          <c>0</c>
        </box>
        <asmtemplate><text>STC{</text><a hover="See x[Standard assembler syntax fields](Babbefhf)." link="cond__2">&lt;c&gt;</a><text>}{</text><a hover="See x[Standard assembler syntax fields](Babbefhf)." link="qw_option">&lt;q&gt;</a><text>}  p14, c5, [</text><a hover="For the &quot;A1 Offset&quot; and &quot;A1 Unindexed&quot; variants: is the general-purpose base register, encoded in the &quot;Rn&quot; field. The PC can be used, but this is deprecated." link="Rn__33">&lt;Rn&gt;</a><text>], </text><a hover="Is an 8-bit immediate, in the range 0 to 255 enclosed in { }, encoded in the &quot;imm8&quot; field. The value of this field is ignored when executing this instruction." link="imm__101">&lt;option&gt;</a></asmtemplate>
      </encoding>
      <ps_section howmany="1">
        <ps name="A32.cops_as.sysldst_mov64.ldstcp.STC_A1_off" sections="1" secttype="noheading">
          <pstext mayhavelinks="1" section="Decode" rep_section="decode">if P == '0' &amp;&amp; U == '0' &amp;&amp; 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 &amp;&amp; (wback || CurrentInstrSet() != InstrSet_A32) then UnpredictableProcedure(); end;</pstext></ps>
      </ps_section>
      <constrained_unpredictables encoding="A1" ps_block="Decode">
        <cu_case>
          <cu_cause>
            <pstext mayhavelinks="1">n == 15 &amp;&amp; wback</pstext></cu_cause>
          <cu_type constraint="Constraint_UNDEF"/>
          <cu_type constraint="Constraint_NOP"/>
          <cu_type constraint="Constraint_WBSUPPRESS"/>
          <cu_type>
            <cu_type_text>The instruction executes with writeback to the PC. The instruction is handled as described in <xref linkend="CEGHJGEF">Using R15</xref>.</cu_type_text>
          </cu_type>
        </cu_case>
      </constrained_unpredictables>
    </iclass>
    <iclass name="T1" oneof="2" id="iclass_t1" no_encodings="4" isa="T32">
      <docvars>
        <docvar key="armarmheading" value="T1"/>
        <docvar key="instr-class" value="general"/>
        <docvar key="isa" value="T32"/>
        <docvar key="mnemonic" value="STC"/>
      </docvars>
      <iclassintro count="4"/>
      <regdiagram form="16x2" psname="T32.w.cpaf.sysldst_mov64.cp_ldst.STC_T1_off" tworows="1">
        <box hibit="31" width="7" settings="7">
          <c>1</c>
          <c>1</c>
          <c>1</c>
          <c>0</c>
          <c>1</c>
          <c>1</c>
          <c>0</c>
        </box>
        <box hibit="24" width="1" name="P" usename="1">
          <c colspan="1"/>
        </box>
        <box hibit="23" width="1" name="U" usename="1">
          <c colspan="1"/>
        </box>
        <box hibit="22" name="D" usename="1" settings="1" psbits="x">
          <c>0</c>
        </box>
        <box hibit="21" width="1" name="W" usename="1">
          <c colspan="1"/>
        </box>
        <box hibit="20" name="L" usename="1" settings="1" psbits="x">
          <c>0</c>
        </box>
        <box hibit="19" width="4" name="Rn" usename="1">
          <c colspan="4"/>
        </box>
        <box hibit="15" width="4" name="CRd" usename="1" settings="4" psbits="xxxx">
          <c>0</c>
          <c>1</c>
          <c>0</c>
          <c>1</c>
        </box>
        <box hibit="11" width="3" settings="3">
          <c>1</c>
          <c>1</c>
          <c>1</c>
        </box>
        <box hibit="8" name="cp15" usename="1" settings="1" psbits="x">
          <c>0</c>
        </box>
        <box hibit="7" width="8" name="imm8" usename="1">
          <c colspan="8"/>
        </box>
      </regdiagram>
      <encoding name="STC_T1_off" oneofinclass="4" oneof="8" label="Offset" bitdiffs="P == 1 &amp;&amp; W == 0">
        <docvars>
          <docvar key="address-form" value="base-plus-offset"/>
          <docvar key="armarmheading" value="T1"/>
          <docvar key="instr-class" value="general"/>
          <docvar key="isa" value="T32"/>
          <docvar key="address-offset" value="signed-offset"/>
          <docvar key="mnemonic" value="STC"/>
        </docvars>
        <box hibit="24" width="1" name="P">
          <c>1</c>
        </box>
        <box hibit="21" width="1" name="W">
          <c>0</c>
        </box>
        <asmtemplate><text>STC{</text><a hover="See x[Standard assembler syntax fields](Babbefhf)." link="cond__2">&lt;c&gt;</a><text>}{</text><a hover="See x[Standard assembler syntax fields](Babbefhf)." link="qw_option">&lt;q&gt;</a><text>}  p14, c5, [</text><a hover="For the &quot;A1 Post-indexed&quot;, &quot;A1 Pre-indexed&quot;, &quot;T1 Offset&quot;, &quot;T1 Post-indexed&quot;, &quot;T1 Pre-indexed&quot;, and &quot;T1 Unindexed&quot; variants: is the general-purpose base register, encoded in the &quot;Rn&quot; field." link="Rn__32">&lt;Rn&gt;</a><text>{, #{</text><a hover="Specifies the offset is added to or subtracted from the base register, defaulting to + if omitted and " link="plus_or_minus_option">+/-</a><text>}</text><a hover="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 &quot;imm8&quot; field, as &lt;imm&gt;/4." link="imm__100">&lt;imm&gt;</a><text>}]</text></asmtemplate>
      </encoding>
      <encoding name="STC_T1_post" oneofinclass="4" oneof="8" label="Post-indexed" bitdiffs="P == 0 &amp;&amp; W == 1">
        <docvars>
          <docvar key="address-form" value="post-indexed"/>
          <docvar key="armarmheading" value="T1"/>
          <docvar key="instr-class" value="general"/>
          <docvar key="isa" value="T32"/>
          <docvar key="mnemonic" value="STC"/>
        </docvars>
        <box hibit="24" width="1" name="P">
          <c>0</c>
        </box>
        <box hibit="21" width="1" name="W">
          <c>1</c>
        </box>
        <asmtemplate><text>STC{</text><a hover="See x[Standard assembler syntax fields](Babbefhf)." link="cond__2">&lt;c&gt;</a><text>}{</text><a hover="See x[Standard assembler syntax fields](Babbefhf)." link="qw_option">&lt;q&gt;</a><text>}  p14, c5, [</text><a hover="For the &quot;A1 Post-indexed&quot;, &quot;A1 Pre-indexed&quot;, &quot;T1 Offset&quot;, &quot;T1 Post-indexed&quot;, &quot;T1 Pre-indexed&quot;, and &quot;T1 Unindexed&quot; variants: is the general-purpose base register, encoded in the &quot;Rn&quot; field." link="Rn__32">&lt;Rn&gt;</a><text>], #{</text><a hover="Specifies the offset is added to or subtracted from the base register, defaulting to + if omitted and " link="plus_or_minus_option">+/-</a><text>}</text><a hover="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 &quot;imm8&quot; field, as &lt;imm&gt;/4." link="imm__100">&lt;imm&gt;</a></asmtemplate>
      </encoding>
      <encoding name="STC_T1_pre" oneofinclass="4" oneof="8" label="Pre-indexed" bitdiffs="P == 1 &amp;&amp; W == 1">
        <docvars>
          <docvar key="address-form" value="pre-indexed"/>
          <docvar key="armarmheading" value="T1"/>
          <docvar key="instr-class" value="general"/>
          <docvar key="isa" value="T32"/>
          <docvar key="mnemonic" value="STC"/>
        </docvars>
        <box hibit="24" width="1" name="P">
          <c>1</c>
        </box>
        <box hibit="21" width="1" name="W">
          <c>1</c>
        </box>
        <asmtemplate><text>STC{</text><a hover="See x[Standard assembler syntax fields](Babbefhf)." link="cond__2">&lt;c&gt;</a><text>}{</text><a hover="See x[Standard assembler syntax fields](Babbefhf)." link="qw_option">&lt;q&gt;</a><text>}  p14, c5, [</text><a hover="For the &quot;A1 Post-indexed&quot;, &quot;A1 Pre-indexed&quot;, &quot;T1 Offset&quot;, &quot;T1 Post-indexed&quot;, &quot;T1 Pre-indexed&quot;, and &quot;T1 Unindexed&quot; variants: is the general-purpose base register, encoded in the &quot;Rn&quot; field." link="Rn__32">&lt;Rn&gt;</a><text>, #{</text><a hover="Specifies the offset is added to or subtracted from the base register, defaulting to + if omitted and " link="plus_or_minus_option">+/-</a><text>}</text><a hover="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 &quot;imm8&quot; field, as &lt;imm&gt;/4." link="imm__100">&lt;imm&gt;</a><text>]!</text></asmtemplate>
      </encoding>
      <encoding name="STC_T1_unind" oneofinclass="4" oneof="8" label="Unindexed" bitdiffs="P == 0 &amp;&amp; U == 1 &amp;&amp; W == 0">
        <docvars>
          <docvar key="address-form" value="unindexed"/>
          <docvar key="armarmheading" value="T1"/>
          <docvar key="instr-class" value="general"/>
          <docvar key="isa" value="T32"/>
          <docvar key="mnemonic" value="STC"/>
        </docvars>
        <box hibit="24" width="1" name="P">
          <c>0</c>
        </box>
        <box hibit="23" width="1" name="U">
          <c>1</c>
        </box>
        <box hibit="21" width="1" name="W">
          <c>0</c>
        </box>
        <asmtemplate><text>STC{</text><a hover="See x[Standard assembler syntax fields](Babbefhf)." link="cond__2">&lt;c&gt;</a><text>}{</text><a hover="See x[Standard assembler syntax fields](Babbefhf)." link="qw_option">&lt;q&gt;</a><text>}  p14, c5, [</text><a hover="For the &quot;A1 Post-indexed&quot;, &quot;A1 Pre-indexed&quot;, &quot;T1 Offset&quot;, &quot;T1 Post-indexed&quot;, &quot;T1 Pre-indexed&quot;, and &quot;T1 Unindexed&quot; variants: is the general-purpose base register, encoded in the &quot;Rn&quot; field." link="Rn__32">&lt;Rn&gt;</a><text>], </text><a hover="Is an 8-bit immediate, in the range 0 to 255 enclosed in { }, encoded in the &quot;imm8&quot; field. The value of this field is ignored when executing this instruction." link="imm__101">&lt;option&gt;</a></asmtemplate>
      </encoding>
      <ps_section howmany="1">
        <ps name="T32.w.cpaf.sysldst_mov64.cp_ldst.STC_T1_off" sections="1" secttype="noheading">
          <pstext mayhavelinks="1" section="Decode" rep_section="decode">if P == '0' &amp;&amp; U == '0' &amp;&amp; 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 &amp;&amp; (wback || CurrentInstrSet() != InstrSet_A32) then UnpredictableProcedure(); end;</pstext></ps>
      </ps_section>
      <constrained_unpredictables encoding="T1" ps_block="Decode">
        <cu_case>
          <cu_cause>
            <pstext mayhavelinks="1">n == 15</pstext></cu_cause>
          <cu_type constraint="Constraint_UNDEF"/>
          <cu_type constraint="Constraint_NOP"/>
          <cu_type constraint="Constraint_WBSUPPRESS"/>
          <cu_type>
            <cu_type_text>The instruction executes with writeback to the PC. The instruction is handled as described in <xref linkend="CEGHJGEF">Using R15</xref>.</cu_type_text>
          </cu_type>
        </cu_case>
      </constrained_unpredictables>
    </iclass>
  </classes>
  <explanations scope="all">
    <explanation enclist="STC_A1_off, STC_A1_post, STC_A1_pre, STC_A1_unind, STC_T1_off, STC_T1_post, STC_T1_pre, STC_T1_unind" symboldefcount="1">
      <symbol link="cond__2">&lt;c&gt;</symbol>
      <account encodedin="cond">
        <intro>
          <para>See <xref linkend="Babbefhf">Standard assembler syntax fields</xref>.</para>
        </intro>
      </account>
    </explanation>
    <explanation enclist="STC_A1_off, STC_A1_post, STC_A1_pre, STC_A1_unind, STC_T1_off, STC_T1_post, STC_T1_pre, STC_T1_unind" symboldefcount="1">
      <symbol link="qw_option">&lt;q&gt;</symbol>
      <account encodedin="">
        <intro>
          <para>See <xref linkend="Babbefhf">Standard assembler syntax fields</xref>.</para>
        </intro>
      </account>
    </explanation>
    <explanation enclist="STC_A1_off, STC_A1_unind" symboldefcount="1">
      <symbol link="Rn__33">&lt;Rn&gt;</symbol>
      <account encodedin="Rn">
        <intro>
          <para>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.</para>
        </intro>
      </account>
    </explanation>
    <explanation enclist="STC_A1_post, STC_A1_pre, STC_T1_off, STC_T1_post, STC_T1_pre, STC_T1_unind" symboldefcount="2">
      <symbol link="Rn__32">&lt;Rn&gt;</symbol>
      <account encodedin="Rn">
        <intro>
          <para>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.</para>
        </intro>
      </account>
    </explanation>
    <explanation enclist="STC_A1_off, STC_A1_post, STC_A1_pre, STC_T1_off, STC_T1_post, STC_T1_pre" symboldefcount="1">
      <symbol link="plus_or_minus_option">+/-</symbol>
      <definition encodedin="U">
        <intro>Specifies the offset is added to or subtracted from the base register, defaulting to + if omitted and </intro>
        <table class="valuetable">
          <tgroup cols="2">
            <thead>
              <row>
                <entry class="bitfield">U</entry>
                <entry class="symbol">+/-</entry>
              </row>
            </thead>
            <tbody>
              <row>
                <entry class="bitfield">0</entry>
                <entry class="symbol">-</entry>
              </row>
              <row>
                <entry class="bitfield">1</entry>
                <entry class="symbol">+</entry>
              </row>
            </tbody>
          </tgroup>
        </table>
      </definition>
    </explanation>
    <explanation enclist="STC_A1_off, STC_A1_post, STC_A1_pre, STC_T1_off, STC_T1_post, STC_T1_pre" symboldefcount="1">
      <symbol link="imm__100">&lt;imm&gt;</symbol>
      <account encodedin="imm8">
        <intro>
          <para>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 &lt;imm&gt;/4.</para>
        </intro>
      </account>
    </explanation>
    <explanation enclist="STC_A1_unind, STC_T1_unind" symboldefcount="1">
      <symbol link="imm__101">&lt;option&gt;</symbol>
      <account encodedin="imm8">
        <intro>
          <para>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.</para>
        </intro>
      </account>
    </explanation>
  </explanations>
  <ps_section howmany="1">
    <ps name="A32.cops_as.sysldst_mov64.ldstcp.STC_A1_off" sections="1" secttype="Operation">
      <pstext mayhavelinks="1" section="Execute" rep_section="execute">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;</pstext></ps>
  </ps_section>
  <timestamp>2026-03-12 12:23:09</timestamp>
  <commit_id>2025-09_rel_asl1</commit_id>
</instructionsection>
