Motorola MPC823e Reference Manual page 1258

Microprocessor for mobile computing
Table of Contents

Advertisement

MPC823e Instruction Set—mtcrf
mtcrf
Assembler Syntax
BIT
0
1
2
FIELD
31
BIT
16
17
18
FIELD
CRM
Definition
Operation
Description
B-100
mtcrf
CRM,rS
3
4
5
6
7
19
20
21
22
23
0
Move to Condition Register Fields
mask ← (4)(CRM[0]) || (4)(CRM[1]) ||... (4)(CRM[7])
CR ← (rS & mask) | (CR & ¬ mask)
The contents of rS are placed into the condition register under
control of the field mask specified by CRM. The field mask
identifies the 4-bit fields affected. Let i be an integer in the range
0–7. If CRM(i) = 1, CR field i (CR bits 4 ∗ i through 4 ∗ i + 3) is set
to the contents of the corresponding field of rS.
Note that updating a subset of the eight fields of the condition
register may have substantially poorer performance on some
implementations than updating all of the fields.
Other registers altered:
CR fields selected by mask
Simplified mnemonics:
mtcr rS
equivalent to
POWERPC ARCHITECTURE
LEVEL
UISA
MPC823e REFERENCE MANUAL
8
9
10
11
12
S
0
24
25
26
27
28
144
mtcrf 0xFF,rS
SUPERVISOR
OPTIONAL
LEVEL
13
14
15
CRM
29
30
31
0
FORM
XFX
MOTOROLA

Advertisement

Table of Contents
loading

Table of Contents