02.02.2013 Views

ARM Processor Instruction Set

ARM Processor Instruction Set

ARM Processor Instruction Set

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

<strong>ARM</strong> <strong>Processor</strong> <strong>Instruction</strong> <strong>Set</strong><br />

5-18<br />

Multiplication by Takes<br />

any number greater than or equal to 2^(29) 1S+16I cycles.<br />

m is the number of cycles required by the multiply algorithm, which is<br />

determined by the contents of Rs<br />

The maximum time for any multiply is thus 1S+16I cycles.<br />

5.6.4 Assembler syntax<br />

MUL{cond}{S} Rd,Rm,Rs<br />

MLA{cond}{S} Rd,Rm,Rs,Rn<br />

where:<br />

{cond} two-character condition mnemonic, see Figure 5-2:<br />

Condition codes on page 5-2<br />

{S} set condition codes if S present<br />

Rd, Rm, Rs, Rn are expressions evaluating to a register number other<br />

than R15.<br />

5.6.5 Examples<br />

MUL R1,R2,R3 ;R1:=R2*R3<br />

MLAEQS R1,R2,R3,R4 ;conditionally<br />

;R1:=R2*R3+R4,<br />

;setting condition codes<br />

5.7 Single Data Transfer (LDR, STR)<br />

Table 5-3: <strong>Instruction</strong> cycle times<br />

The instruction is only executed if the condition is true. The various conditions are<br />

defined at the beginning of this chapter. The instruction encoding is shown in Figure<br />

5-14: Single data transfer instructions.<br />

The single data transfer instructions are used to load or store single bytes or words of<br />

data. The memory address used in the transfer is calculated by adding an offset to or<br />

subtracting an offset from a base register.<br />

The result of this calculation may be written back into the base register if<br />

“auto-indexing” is required.<br />

<strong>ARM</strong>7500FE Data Sheet<br />

<strong>ARM</strong> DDI 0077B<br />

Named Partner Open Confidential Access - Preliminary - Preliminary Draft

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!