
MPC823 Instruction Set
B-2
MPC823 USER’S MANUAL
MOTOROLA
INSTRUCTION
SET
B
B.3 INSTRUCTION FIELDS
The table below shows the instruction fields used in the various instruction formats.
FIELD
DESCRIPTION
AA (30)
Absolute address bit.
0
The immediate field represents an address relative to the current instruction address (CIA).
The effective (logical) address of the branch is either the sum of the LI field sign-extended to
32 bits and the address of the branch instruction or the sum of the BD field sign-extended to
32 bits and the address of the branch instruction.
1
The immediate field represents an absolute address. The effective address (EA) of the branch
is the LI field sign-extended to 32 bits or the BD field sign-extended to 32 bits. The LI and LD
fields are sign-extended to 32.
BD (16–29)
Immediate field specifying a 14-bit signed two's complement branch displacement that is
concatenated on the right with 0b00 and sign-extended to 32 bits.
BI (11–15)
This field is used to specify a bit in the CR to be used as the condition of a branch conditional
instruction.
BO (6–10)
This field is used to specify options for the branch conditional instructions.
crbA (11–15)
This field is used to specify a bit in the CR to be used as a source.
crbB (16–20)
This field is used to specify a bit in the CR to be used as a source.
CRM (12–19)
This field mask is used to identify the CR fields that are to be updated by the mtcrf instruction.
d (16–31)
Immediate field specifying a 16-bit signed two's complement integer that is sign-extended to 32 bits.
frC (21–25)
NOT USED BY MPC823.
frD (6–10)
NOT USED BY MPC823.
frS (6–10)
NOT USED BY MPC823.
IMM (16–19)
NOT USED BY MPC823.
LI (6–29)
Immediate field specifying a 24-bit signed two's complement integer that is concatenated on the
right with 0b00 and sign-extended to 32 bits.
LK (31)
Link bit.
0
Does not update the link register (LR).
1
Updates the LR. If the instruction is a branch instruction, the address of the instruction
following the branch instruction is placed into the LR.
MB (21–25) and
ME (26–30)
These fields are used in rotate instructions to specify a 32 bit mask.
NB (16–20)
This field is used to specify the number of bytes to move in an immediate string load or store.
OE (21)
This field is used for extended arithmetic to enable setting OV and SO in the XER.
OPCD (0–5)
Primary opcode field
rA (11–15)
This field is used to specify a GPR to be used as a source or destination.
rB (16–20)
This field is used to specify a GPR to be used as a source.
Rc (31)
Record bit.
0
Does not update the condition register (CR).
1
Updates the CR to reflect the result of the operation.
For integer instructions, CR bits 0–2 are set to reflect the result as a signed quantity and CR
bit 3 receives a copy of the summary overflow bit, XER[SO]. The result as an unsigned quantity
or a bit string can be deduced from the EQ bit.
Exceptions are referred to as interrupts in the architecture specification.)
rD (6–10)
This field is used to specify a GPR to be used as a destination.
rS (6–10)
This field is used to specify a GPR to be used as a source.