Motorola MPC823e Reference Manual page 1168

Microprocessor for mobile computing
Table of Contents

Advertisement

MPC823e Instruction Set—addi
addi
Assembler Syntax
BIT
0
1
2
FIELD
14
BIT
16
17
18
FIELD
Definition
Operation
Description
B-10
addi
rD,rA,SIMM)
3
4
5
6
7
19
20
21
22
23
SIMM
Add Immediate
if rA = 0 then rD " EXTS(SIMM)
else rD " rA + EXTS(SIMM)
The sum (rA|0) + SIMM is placed into rD.
The addi instruction is preferred for addition because it sets few
status bits. Note that addi uses the value 0, not the contents of
GPR0, if rA = 0.
Other registers altered:
None
Simplified mnemonics:
li
rD,value
la
rD,disp(rA)
subi
rD,rA,value
POWERPC ARCHITECTURE
LEVEL
UISA
MPC823e REFERENCE MANUAL
8
9
10
11
12
D
24
25
26
27
28
equivalent to
addi
equivalent to
addi
equivalent to
addi
SUPERVISOR
OPTIONAL
LEVEL
13
14
15
A
29
30
31
rD,0,value
rD,rA,disp
rD,rA,–value
FORM
D
MOTOROLA

Advertisement

Table of Contents
loading

Table of Contents