Docsity

ARM Processor Instruction Set, Slides of Architecture

Toggle sidebar
bg1
ARM7500FE Data Sheet
ARM DDI 0077B
5-1
11
1
Open Access - Preliminary
This chapter describes the ARM processor instruction set.
5.1 Instruction Set Summary 5-2
5.2 The Condition Field 5-2
5.3 Branch and Branch with Link (B, BL) 5-3
5.4 Data Processing 5-4
5.5 PSR Transfer (MRS, MSR) 5-13
5.6 Multiply and Multiply-Accumulate (MUL, MLA) 5-16
5.7 Single Data Transfer (LDR, STR) 5-18
5.8 Block Data Transfer (LDM, STM) 5-24
5.9 Single Data Swap (SWP) 5-32
5.10 Software Interrupt (SWI) 5-34
5.11 Coprocessor Instructions on the ARM Processor 5-36
5.12 Coprocessor Data Operations (CDP) 5-36
5.13 Coprocessor Data Transfers (LDC, STC) 5-38
5.14 Coprocessor Register Transfers (MRC, MCR) 5-41
5.15 Undefined Instruction 5-43
5.16 Instruction Set Examples 5-44
5.17 Instruction Speed Summary 5-47
ARM Processor Instruction Set
5
pf3
pf4
pf5
pf8
pf9
pfa
pfd
pfe
pff
pf12
pf13
pf14
pf15
pf16
pf17
pf18
pf19
pf1a
pf1b
pf1c
pf1d
pf1e
pf1f
pf20
pf21
pf22
pf23
pf24
pf25
pf26
pf27
pf28
pf29
pf2a
pf2b
pf2c
pf2d
pf2e
pf2f
pf30
pf31
pf32

Partial preview of the text

Download ARM Processor Instruction Set and more Slides Architecture in PDF only on Docsity!

ARM7500FE Data Sheet

ARM DDI 0077B

Open Access - Preliminary

This chapter describes the ARM processor instruction set. 5.1 Instruction Set Summary 5- 5.2 The Condition Field 5- 5.3 Branch and Branch with Link (B, BL) 5- 5.4 Data Processing 5- 5.5 PSR Transfer (MRS, MSR) 5- 5.6 Multiply and Multiply-Accumulate (MUL, MLA) 5- 5.7 Single Data Transfer (LDR, STR) 5- 5.8 Block Data Transfer (LDM, STM) 5- 5.9 Single Data Swap (SWP) 5- 5.10 Software Interrupt (SWI) 5- 5.11 Coprocessor Instructions on the ARM Processor 5- 5.12 Coprocessor Data Operations (CDP) 5- 5.13 Coprocessor Data Transfers (LDC, STC) 5- 5.14 Coprocessor Register Transfers (MRC, MCR) 5- 5.15 Undefined Instruction 5- 5.16 Instruction Set Examples 5- 5.17 Instruction Speed Summary 5-

5 ARM Processor Instruction Set

Named Partner Confidential - Preliminary Draft

ARM7500FE Data Sheet

ARM DDI 0077B

Open Access - Preliminary

5.1 Instruction Set Summary

A summary of the ARM processor instruction set is shown inFigure 5-1: Instruction set summary.

Figure 5-1: Instruction set summary Note: Some instruction codes are not defined but do not cause the Undefined instruction trap to be taken; for instance, a Multiply instruction with bit 6 changed to a 1. These instructions shall not be used, as their action may change in future ARM implementations.

5.2 The Condition Field

Figure 5-2: Condition codes

31 30 29 28 27 26 25 24 23 22 21 20 19 18 17 16 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0 Data Processing PSR Transfer cond^0 0 I^ opcode^ S^ Rn^ Rd^ operand 2 Multiply cond 0 0 0 0 0 0 A S Rd Rn Rs 1 0 0 1 Rm Single data swap cond 0 0 0 1 0 B 0 0 Rn Rd 0 0 0 0 1 0 0 1 Rm Single data transfer cond 0 1 I P U B W L Rn Rd offset Undefined instruction cond 0 1 1 x x x x x x x x x x x x x x x x x x x x 1 x x x x Block data transfer cond 1 0 0 P U S W L Rn Register List Branch cond 1 0 1 L offset Coproc data transfer cond 1 1 0 P U N W L Rn CRd cp_num offset Coproc data operation cond 1 1 1 0 CP opc CRn CRd cp_num CP 0 CRm Coproc register transfer cond 1 1 1 0 CP opc L CRn Rd cp_num CP 1 CRm Software interrupt cond 1 1 1 1 ignored by processor

31 28 27 0 cond

Condition Field 0000 = EQ (equal) - Z set 0001 = NE (not equal) - Z clear 0010 = CS (unsigned higher or same) - C set 0011 = CC (unsigned lower) - C clear 0100 = MI (negative) - N set 0101 = PL (positive or zero) - N clear 0110 = VS (overflow) - V set 0111 = VC (no overflow) - V clear 1000 = HI (unsigned higher) - C set and Z clear 1001 = LS (unsigned lower or same) - C clear or Z set 1010 = GE (greater or equal) - N set and V set, or N clear and V clear 1011 = LT (less than) - N set and V clear, or N clear and V set 1100 = GT (greater than) - Z clear, and either N set and Vset, or N clear and V clear 1101 = LE (less than or equal) - Z set, or N set and V clear, or N clear and V set 1101 = AL - always 1111 = NV - never

Named Partner Confidential - Preliminary Draft

ARM7500FE Data Sheet

ARM DDI 0077B

Open Access - Preliminary

5.3.2 Instruction cycle times Branch and Branch with Link instructions take 3 instruction fetches. For more information see5.17 Instruction Speed Summary on page 5-47.

5.3.3 Assembler syntax B{L}{cond} Items in {} are optional. Items in <> must be present. {L} requests the Branch with Link form of the instruction. If *absent, R14 will not be affected by the instruction. {cond} is a two-char mnemonic as shown inFigure 5-2: Condition codes on page 5-2 (EQ, NE, VS etc). If absent then AL (ALways) will be used. is the destination. The assembler calculates the offset.

5.3.4 Examples here BAL here ;assembles to 0xEAFFFFFE (note effect of PC ;offset) B there ;ALways condition used as default CMP R1,#0 ;compare R1 with zero and branch to fred if R BEQ fred ;was zero otherwise continue to next instruction BL sub+ROM ;call subroutine at computed address ADDS R1,#1 ;add 1 to register 1, setting CPSR flags on the BLCC sub ;result then call subroutine if the C flag is ;clear, which will be the case unless R1 held ;0xFFFFFFFF

5.4 Data Processing

The instruction is only executed if the condition is true, defined at the beginning of this chapter. The instruction encoding is shown inFigure 5-4: Data processing instructions on page 5-5. The instruction produces a result by performing a specified arithmetic or logical operation on one or two operands. First operand is always a register (Rn). Second operand may be a shifted register (Rm) or a rotated 8-bit immediate value (Imm) according to the value of the I bit in the instruction. The condition codes in the CPSR may be preserved or updated as a result of this instruction, according to the value of the S-bit in the instruction. Certain operations (TST, TEQ, CMP, CMN) do not write the result to Rd. They are used only to perform tests and to set the condition codes on the result and always have the S bit set. The instructions and their effects are listed inTable 5-1: ARM data processing instructions on page 5-.

ARM7500FE Data Sheet

ARM DDI 0077B

Open Access - Preliminary

Figure 5-4: Data processing instructions

Cond 00 I OpCode (^) Rn Rd Operand 2

31 28 272625 24 2120 19 16 15 1211 0

Destination register 1st operand register Set condition codes

Operation Code

0 = do not alter condition codes 1 = set condition codes

0000 = AND - Rd:= Op1 AND Op 0010 = SUB - Rd:= Op1 - Op 0011 = RSB - Rd:= Op2 - Op 0100 = ADD - Rd:= Op1 + Op 0101 = ADC - Rd:= Op1 + Op2 + C 0110 = SBC - Rd:= Op1 - Op2 + C 0111 = RSC - Rd:= Op2 - Op1 + C 1000 = TST - set condition codes on Op1 AND Op 1001 = TEQ - set condition codes on Op1 EOR Op 1010 = CMP - set condition codes on Op1 - Op 1011 = CMN - set condition codes on Op1 + Op 1100 = ORR - Rd:= Op1 OR Op 1101 = MOV - Rd:= Op 1110 = BIC - Rd:= Op1 AND NOT Op 1111 = MVN - Rd:= NOT Op Immediate Operand 0 = operand 2 is a register

1 = operand 2 is an immediate value

Shift Rm

Rotate

S

Unsigned 8 bit immediate value

2nd operand register shift applied to Rm

shift applied to Imm

Imm

Condition field

11 8 7 0

11 4 3 0

0001 = EOR - Rd:= Op1 EOR Op

  • 1
  • 1

ARM7500FE Data Sheet

ARM DDI 0077B

Open Access - Preliminary

If the S bit is set (and Rd is not R15):

  • the V flag in the CPSR will be set if an overflow occurs into bit 31 of the result; this may be ignored if the operands were considered unsigned, but warns of a possible error if the operands were 2's complement signed
  • the C flag will be set to the carry out of bit 31 of the ALU
  • the Z flag will be set if and only if the result was zero
  • the N flag will be set to the value of bit 31 of the result (indicating a negative result if the operands are considered to be 2's complement signed).

5.4.2 Shifts

When the second operand is specified to be a shifted register, the operation of the barrel shifter is controlled by the Shift field in the instruction. This field indicates the type of shift to be performed (logical left or right, arithmetic right or rotate right). The amount by which the register should be shifted may be contained in an immediate field in the instruction, or in the bottom byte of another register (other than R15). The encoding for the different shift types is shown inFigure 5-5: ARM shift operations.

Figure 5-5: ARM shift operations

Instruction specified shift amount When the shift amount is specified in the instruction, it is contained in a 5 bit field which may take any value from 0 to 31. A logical shift left (LSL) takes the contents of Rm and moves each bit by the specified amount to a more significant position. The least significant bits of the result are filled with zeros, and the high bits of Rm which do not map into the result are discarded, except that the least significant discarded bit becomes the shifter carry output which may be latched into the C bit of the CPSR when the ALU operation is in the logical class (see above). For example, the effect of LSL # is shown inFigure 5-6: Logical shift left on page 5-8.

0 Rs 0 1

11 7 6 5 4 11 8 7 6 5 4

Shift type

Shift amount 5 bit unsigned integer

00 = logical left 01 = logical right 10 = arithmetic right 11 = rotate right

Shift type

Shift register

00 = logical left 01 = logical right 10 = arithmetic right 11 = rotate right

Shift amount specified in bottom byte of Rs

Named Partner Confidential - Preliminary Draft

ARM7500FE Data Sheet

ARM DDI 0077B

Open Access - Preliminary

Figure 5-6: Logical shift left Note: LSL #0 is a special case, where the shifter carry out is the old value of the CPSR C flag. The contents of Rm are used directly as the second operand.

Logical shift right A logical shift right (LSR) is similar, but the contents of Rm are moved to less significant positions in the result. LSR #5 has the effect shown inFigure 5-7: Logical shift right.

Figure 5-7: Logical shift right The form of the shift field which might be expected to correspond to LSR #0 is used to encode LSR #32, which has a zero result with bit 31 of Rm as the carry output. Logical shift right zero is redundant as it is the same as logical shift left zero, so the assembler will convert LSR #0 (and ASR #0 and ROR #0) into LSL #0, and allow LSR #32 to be specified.

Arithmetic shift right An arithmetic shift right (ASR) is similar to logical shift right, except that the high bits are filled with bit 31 of Rm instead of zeros. This preserves the sign in 2's complement notation. For example, ASR #5 is shown inFigure 5-8: Arithmetic shift right on page 5-9.

0 0 0 0 0

contents of Rm

value of operand 2

31 27 26 0

carry out

contents of Rm

value of operand 2

31 0

carry out

0 0 0 0 0

5 4

Named Partner Confidential - Preliminary Draft

ARM7500FE Data Sheet

ARM DDI 0077B

Open Access - Preliminary

Figure 5-10: Rotate right extended

Register specified shift amount Only the least significant byte of the contents of Rs is used to determine the shift amount. Rs can be any general register other than R15.

Note: The zero in bit 7 of an instruction with a register controlled shift is compulsory; a one in this bit will cause the instruction to be a multiply or undefined instruction.

5.4.3 Immediate operand rotates The immediate operand rotate field is a 4 bit unsigned integer which specifies a shift operation on the 8 bit immediate value. This value is zero extended to 32 bits, and then subject to a rotate right by twice the value in the rotate field. This enables many common constants to be generated, for example all powers of 2.

Byte Description

0 Unchanged contents of Rm will be used as the second operand, and the old value of the CPSR C flag will be passed on as the shifter carry output

1 - 31 The shifted result will exactly match that of an instruction specified shift with the same value and shift operation

32 or more The result will be a logical extension of the shift described above: 1 LSL by 32 has result zero, carry out equal to bit 0 of Rm. 2 LSL by more than 32 has result zero, carry out zero. 3 LSR by 32 has result zero, carry out equal to bit 31 of Rm. 4 LSR by more than 32 has result zero, carry out zero. 5 ASR by 32 or more has result filled with and carry out equal to bit 31 of Rm. 6 ROR by 32 has result equal to Rm, carry out equal to bit 31 of Rm. 7 ROR byn wheren is greater than 32 will give the same result and carry out as ROR by n-32; therefore repeatedly subtract 32 fromn until the amount is in the range 1 to 32 and see above.

Table 5-2: Register specified shift amount

contents of Rm

value of operand 2

31 0

carry out

1

C

in

ARM7500FE Data Sheet

ARM DDI 0077B

Open Access - Preliminary

5.4.4 Writing to R

When Rd is a register other than R15, the condition code flags in the CPSR may be updated from the ALU flags as described above. When Rd is R15 and the S flag in the instruction is not set the result of the operation is placed in R15 and the CPSR is unaffected. When Rd is R15 and the S flag is set the result of the operation is placed in R15 and the SPSR corresponding to the current mode is moved to the CPSR. This allows state changes which atomically restore both PC and CPSR. Note: This form of instruction must not be used in User mode.

5.4.5 Using R15 as an operand

If R15 (the PC) is used as an operand in a data processing instruction the register is used directly. The PC value will be the address of the instruction, plus 8 or 12 bytes due to instruction prefetching. If the shift amount is specified in the instruction, the PC will be 8 bytes ahead. If a register is used to specify the shift amount the PC will be 12 bytes ahead.

5.4.6 TEQ, TST, CMP & CMN opcodes

These instructions do not write the result of their operation but do set flags in the CPSR. An assembler shall always set the S flag for these instructions even if it is not specified in the mnemonic. The TEQP form of the instruction used in earlier processors shall not be used in the 32-bit modes, the PSR transfer operations should be used instead. If used in these modes, its effect is to move SPSR_ to CPSR if the processor is in a privileged mode and to do nothing if in User mode.

5.4.7 Instruction cycle times

Data Processing instructions vary in the number of incremental cycles taken as follows:

See5.17 Instruction Speed Summary on page 5-47 for more information.

Instruction Cycles

Normal Data Processing 1instruction fetch

Data Processing with register specified shift 1 instruction fetch + 1 internal cycle

Data Processing with PC written 3 instruction fetches

Data Processing with register specified shift and PC written

3 instruction fetches and 1 internal cycle

Figure 5-11: Instruction cycle times

ARM7500FE Data Sheet

ARM DDI 0077B

Open Access - Preliminary

5.5 PSR Transfer (MRS, MSR)

The instruction is only executed if the condition is true. The various conditions are defined in5.2 The Condition Field on page 5-2. The MRS and MSR instructions are formed from a subset of the Data Processing operations and are implemented using the TEQ, TST, CMN and CMP instructions without the S flag set. The encoding is shown inFigure 5-12: PSR transfer on page 5-14. These instructions allow access to the CPSR and SPSR registers. The MRS instruction allows the contents of the CPSR or SPSR_ to be moved to a general register. The MSR instruction allows the contents of a general register to be moved to the CPSR or SPSR_ register. The MSR instruction also allows an immediate value or register contents to be transferred to the condition code flags (N,Z,C and V) of CPSR or SPSR_ without affecting the control bits. In this case, the top four bits of the specified register contents or 32-bit immediate value are written to the top four bits of the relevant PSR.

5.5.1 Operand restrictions

In User mode, the control bits of the CPSR are protected from change, so only the condition code flags of the CPSR can be changed. In other (privileged) modes the entire CPSR can be changed. The SPSR register which is accessed depends on the mode at the time of execution. For example, only SPSR_fiq is accessible when the processor is in FIQ mode. Note: R15 must not be specified as the source or destination register. A further restriction is that you must not attempt to access an SPSR in User mode, since no such register exists.

5.5.2 Reserved bits

Only eleven bits of the PSR are defined in the ARM processor (N,Z,C,V,I,F & M[4:0]); the remaining bits (= PSR[27:8,5]) are reserved for use in future versions of the processor.

Compatibility To ensure the maximum compatibility between ARM processor programs and future processors, the following rules should be observed: 1 The reserved bit must be preserved when changing the value in a PSR. 2 Programs must not rely on specific values from the reserved bits when checking the PSR status, since they may read as one or zero in future processors. A read-modify-write strategy should therefore be used when altering the control bits of any PSR register; this involves transferring the appropriate PSR register to a general register using the MRS instruction, changing only the relevant bits and then transferring the modified value back to the PSR register using the MSR instruction.

Named Partner Confidential - Preliminary Draft

ARM7500FE Data Sheet

ARM DDI 0077B

Open Access - Preliminary

Figure 5-12: PSR transfer

Cond

31 2827 21 1615 1211 0

Condition field

P

2322

0 = CPSR 1 = SPSR_

(^00010) s 001111 Rd 000000000000

Destination register Source PSR

Condition field

MRS

31 2827 2322 21 0

MSR

Cond 00010 Pd Rm

4 3

Condition field

31 2827 23 22

MSR

Cond Pd

1010011111 00000000

12 11

Source register

(^21 ) 00 I 10 1010001111

(^110) Source operand

Immediate Operand

Rm

Rotate

Unsigned 8 bit immediate value shift applied to Imm

Imm

11 8 7 0

11 4 3 0

Destination PSR 0 = CPSR 1 = SPSR_

Destination PSR 0 = CPSR 1 = SPSR_

0 = Source operand is a register

1 = Source operand is an immediate value

00000000

Source register

(transfer PSR contents to a register)

(transfer register contents to PSR)

(transfer register contents or immediate value to PSR flag bits only)

Named Partner Confidential - Preliminary Draft

ARM7500FE Data Sheet

ARM DDI 0077B

Open Access - Preliminary

5.5.5 Examples In User mode the instructions behave as follows: MSR CPSR_all,Rm ;CPSR[31:28] <- Rm[31:28] MSR CPSR_flg,Rm ;CPSR[31:28] <- Rm[31:28] MSR CPSR_flg,#0xA0000000; ;CPSR[31:28] <- 0xA ;(i.e. set N,C; clear Z,V) MRS Rd,CPSR ;Rd[31:0] <- CPSR[31:0] In privileged modes the instructions behave as follows: MSR CPSR_all,Rm ;CPSR[31:0] <- Rm[31:0] MSR CPSR_flg,Rm ;CPSR[31:28] <- Rm[31:28] MSR CPSR_flg,#0x50000000; ;CPSR[31:28] <- 0x ;(i.e. set Z,V; clear N,C) MRS Rd,CPSR ;Rd[31:0] <- CPSR[31:0] MSR SPSR_all,Rm ;SPSR_[31:0] <- Rm[31:0] MSR SPSR_flg,Rm ;SPSR_[31:28] <- Rm[31:28] MSR SPSR_flg,#0xC0000000; ;SPSR_[31:28] <- 0xC ;(i.e. set N,Z; clear C,V) MRS Rd,SPSR ;Rd[31:0] <- SPSR_[31:0]

5.6 Multiply and Multiply-Accumulate (MUL, MLA)

The instruction is only executed if the condition is true. The various conditions are defined at the beginning of this chapter. The instruction encoding is shown in Figure 5-13: Multiply instructions. The multiply and multiply-accumulate instructions use a 2-bit Booth’s algorithm to perform integer multiplication. They give the least significant 32-bits of the product of two 32-bit operands, and may be used to synthesize higher-precision multiplications.

Figure 5-13: Multiply instructions The multiply form of the instruction gives Rd:=Rm*Rs. Rn is ignored, and should be set to zero for compatibility with possible future upgrades to the instruction set.

Cond 0 0 0 0 0 0 A S Rd Rn Rs 1 0 0 1 Rm

31 2827 2221 2019 1615 12 11 8 7 4 3 0

Operand registers Destination register Set condition code

Accumulate

0 = do not alter condition codes 1 = set condition codes 0 = multiply only 1 = multiply and accumulate Condition Field

ARM7500FE Data Sheet

ARM DDI 0077B

Open Access - Preliminary

The multiply-accumulate form gives Rd:=Rm*Rs+Rn, which can save an explicit ADD instruction in some circumstances. The results of a signed multiply and of an unsigned multiply of 32-bit operands differ only in the upper 32 bits; the low 32 bits of the signed and unsigned results are identical. As these instructions only produce the low 32 bits of a multiply, they can be used for both signed and unsigned multiplies.

Example For example consider the multiplication of the operands: Operand A Operand B Result 0xFFFFFFF6 0x00000014 0xFFFFFF

If the operands are interpreted as signed, operand A has the value -10, operand B has the value 20, and the result is -200 which is correctly represented as 0xFFFFFF If the operands are interpreted as unsigned, operand A has the value 4294967286, operand B has the value 20 and the result is 85899345720, which is represented as 0x13FFFFFF38, so the least significant 32 bits are 0xFFFFFF38.

5.6.1 Operand restrictions

Due to the way multiplication was implemented, certain combinations of operand registers should be avoided. (The assembler will issue a warning if these restrictions are overlooked.) The destination register (Rd) should not be the same as the operand register (Rm), as Rd is used to hold intermediate values and Rm is used repeatedly during multiply. A MUL will give a zero result if Rm=Rd, and an MLA will give a meaningless result. R must not be used as an operand or as the destination register. All other register combinations will give correct results, and Rd, Rn and Rs may use the same register when required.

5.6.2 CPSR flags

Setting the CPSR flags is optional, and is controlled by the S bit in the instruction. The N (Negative) and Z (Zero) flags are set correctly on the result (N is made equal to bit 31 of the result, and Z is set if and only if the result is zero). The C (Carry) flag is set to a meaningless value and the V (oVerflow) flag is unaffected.

5.6.3 Instruction cycle times

The Multiply instructions take 1 instruction fetch and m internal cycles, as shown in Table 5-3: Instruction cycle times. For more information see5.17 Instruction Speed Summary on page 5-47.

Multiplication by Takes

any number between2^(2m-3) and2^(2m-1)-1 1S+mI cycles for116.

Multiplication by 0 or 1 1S+1I cycles

Table 5-3: Instruction cycle times

ARM7500FE Data Sheet

ARM DDI 0077B

Open Access - Preliminary

Figure 5-14: Single data transfer instructions

5.7.1 Offsets and auto-indexing

The offset from the base may be either a 12-bit unsigned binary immediate value in the instruction, or a second register (possibly shifted in some way). The offset may be added to (U=1) or subtracted from (U=0) the base register Rn. The offset modification may be performed either before (pre-indexed, P=1) or after (post-indexed, P=0) the base is used as the transfer address. The W bit gives optional auto increment and decrement addressing modes. The modified base value may be written back into the base (W=1), or the old base value may be kept (W=0).

Cond I Rn Rd

31 28 2726 2524 2120 19 16 15 12 11 0

01 P U B W L Offset

2322

11 0

Source/Destination register Base register Load/Store bit 0 = Store to memory 1 = Load from memory Write-back bit

Byte/Word bit

0 = no write-back 1 = write address into base

0 = transfer word quantity 1 = transfer byte quantity Up/Down bit

Pre/Post indexing bit

0 = offset is an immediate value Immediate offset

Immediate offset

Unsigned 12 bit immediate offset 11 1 = offset is a register 0

shift applied to Rm

4 3

Condition field

0 = down; subtract offset from base 1 = up; add offset to base

0 = post; add offset after transfer 1 = pre; add offset before transfer

Offset register

Shift Rm

Named Partner Confidential - Preliminary Draft

ARM7500FE Data Sheet

ARM DDI 0077B

Open Access - Preliminary

Post-indexed addressing In the case of post-indexed addressing, the write back bit is redundant and is always set to zero, since the old base value can be retained by setting the offset to zero. Therefore post-indexed data transfers always write back the modified base. The only use of the W bit in a post-indexed data transfer is in privileged mode code, where setting the W bit forces non-privileged mode for the transfer, allowing the operating system to generate a user address in a system where the memory management hardware makes suitable use of this hardware.

5.7.2 Shifted register offset The 8 shift control bits are described in the data processing instructions section. However, the register specified shift amounts are not available in this instruction class. See5.4.2 Shifts on page 5-7.

5.7.3 Bytes and words This instruction class may be used to transfer a byte (B=1) or a word (B=0) between an ARM processor register and memory. The following text assumes that the ARM7500FE is operating with 32-bit wide memory. If it is operating with 16-bit wide memory, the positions of bytes on theexternal data bus will be different, although, on the ARM7500FE internal data bus the positions will be as described here. The action of LDR(B) and STR(B) instructions is influenced by the 3 instruction fetches. For more information see5.17 Instruction Speed Summary on page 5-47. The two possible configurations are described below.