Data Processing - Samsung S3C2501X User Manual

32-bit risc microprocessor
Table of Contents

Advertisement

S3C2501X

3.5 DATA PROCESSING

The data processing instruction is only executed if the condition is true. The conditions are defined in Table 3-2.
The instruction encoding is shown in Figure 3-4.
31
28
27
00
Cond
26 25
24
21
20
19
L
Opcode
S
[15:12] Destination Register
0 = Branch
[19:16] 1st operand Register
0 = Branch
[20] Set condition Codes
0 = Do not after condition codes
[24:21] Operation Code
0000 = AND-Rd: = Op1 AND Op2
0001 = EOR-Rd: = Op1 EOR Op2
0010 = SUB-Rd: = Op1-Op2
0011 = RSB-Rd: = Op2-Op1
0100 = ADD-Rd: = Op1+Op2
0101 = ADC-Rd: = Op1+Op2+C
0110 = SBC-Rd: = OP1-Op2+C-1
0111 = RSC-Rd: = Op2-Op1+C-1
1000 = TST-set condition codes on Op1 AND Op2
1001 = TEO-set condition codes on OP1 EOR Op2
1010 = CMP-set condition codes on Op1-Op2
1011 = SMN-set condition codes on Op1+Op2
1100 = ORR-Rd: = Op1 OR Op2
1101 = MOV-Rd: =OP2
1110 = BIC-Rd: = Op1 AND NOT Op2
1111 = MVN-Rd: = NOT Op2
[25] Immediate Operand
0 = Operand 2 is a register
[11:0] Operand 2 Type Selection
11
Shift
[3:0] 2nd Operand Register
11
8
7
Rotate
[7:0] Unsigned 8 bit immediate value
[31:28] Condition Field
Figure 3-4. Data Processing Instructions
16
15
12
11
Rn
Rd
1 = Branch with Link
1 = Branch with Link
1 = Set condition codes
1 = Operand 2 is an immediate Value
3
4
0
Rm
[11:4] Shift applied to Rm
0
Imm
[11:8] Shift applied to Imm
INSTRUCTION SET
0
Operand2
3-9

Advertisement

Table of Contents
loading

Table of Contents