You copied the Doc URL to your clipboard.

13.5. CP14 debug instructions

Table 13.28 shows the CP14 debug instructions.

CP14 debug instructions
Binary addressRegister numberAbbreviationLegal instructions
Opcode_2CRm
b000b00000DIDRMRC p14, 0, <Rd>, c0, c0, 0[1]
b000b00011DSCR

MRC p14, 0, <Rd>, c0, c1,0[1]

MRC p14, 0, R15, c0, c1,0

MCR p14, 0, <Rd>, c0, c1,0[1]

b000b01015

DTR

(rDTR/wDTR)

MRC p14, 0, <Rd>, c0, c5, 0[1]

MCR p14, 0, <Rd>, c0, c5, 0[1]

STC p14, c5, <addressing mode>

LDC p14, c5, <addressing mode>

b000b01117VCR

MRC p14, 0, <Rd>, c0, c7, 0[1]

MCR p14, 0, <Rd>, c0, c7, 0[1]

b100b0000-b111164-79BVR

MRC p14, 0, <Rd>, c0, cy,4[1], [2]

MCR p14, 0, <Rd>, c0, cy,4[1], [2]

b101b0000-b111180-95BCR

MRC p14, 0, <Rd>, c0, cy,5[1], [2]

MCR p14, 0, <Rd>, c0, cy,5[1], [2]

b110b0000-b111196-111WVR

MRC p14, 0, <Rd>, 0, cy, 6[1], [2]

MCR p14, 0, <Rd>, 0, cy, 6[1], [2]

b111b0000-b1111112-127WCR

MRC p14, 0, <Rd>, c0, cy, 7[1], [2]

MCR p14, 0, <Rd>, c0, cy, 7[1], [2]

[1] <Rd> is any of the ARM registers R0-14.

[2] y is the decimal representation for the binary number CRm.

In Table 13.28, MRC p14,0,<Rd>,c0,c5,0 and STC p14,c5,<addressing mode> refer to the rDTR and MCR p14,0,<Rd>,c0,c5,0 and LDC p14,c5,<addressing mode> refer to the wDTR. See CP14 c5, Data Transfer Registers (DTR) for more details.

The MRC p14,0,R15,c0,c1,0 instruction sets the CPSR flags as follows:

  • N flag = DSCR[31]. This is an Unpredictable value.

  • Z flag = DSCR[30]. This is the value of the rDTRfull flag.

  • C flag = DSCR[29]. This is the value of the wDTRfull flag.

  • V flag = DSCR[28]. This is an Unpredictable value.

Instructions that follow the MRC instruction can be conditioned to these CPSR flags.