S3C2500B
INSTRUCTION SET
3-71
3.23 FORMAT 4: ALU OPERATIONS
15
0
0
14
10
[2:0] Source/Destination Register
[5:3] Source Register 2
[9:6] Opcode
5
6
3
Rd
0
0
13
12
11
Op
Rs
0
0
0
9
2
Figure 3-33. Format 4
3.23.1 OPERATION
The following instructions perform ALU operations on a Lo register pair.
NOTE
All instructions in this group set the CPSR condition codes
Table 3-11. Summary of Format 4 Instructions
OP
THUMB Assembler
ARM Equivalent
Action
0000
AND Rd, Rs
ANDS Rd, Rd, Rs
Rd: = Rd AND Rs
0001
EOR Rd, Rs
EORS Rd, Rd, Rs
Rd: = Rd EOR Rs
0010
LSL Rd, Rs
MOVS Rd, Rd, LSL Rs
Rd : = Rd << Rs
0011
LSR Rd, Rs
MOVS Rd, Rd, LSR Rs
Rd : = Rd >> Rs
0100
ASR Rd, Rs
MOVS Rd, Rd, ASR Rs
Rd : = Rd ASR Rs
0101
ADC Rd, Rs
ADCS Rd, Rd, Rs
Rd : = Rd + Rs + C-bit
0110
SBC Rd, Rs
SBCS Rd, Rd, Rs
Rd : = Rd - Rs - NOT C-bit
0111
ROR Rd, Rs
MOVS Rd, Rd, ROR Rs
Rd : = Rd ROR Rs
1000
TST Rd, Rs
TST Rd, Rs
Set condition codes on Rd AND Rs
1001
NEG Rd, Rs
RSBS Rd, Rs, #0
Rd = - Rs
1010
CMP Rd, Rs
CMP Rd, Rs
Set condition codes on Rd - Rs
1011
CMN Rd, Rs
CMN Rd, Rs
Set condition codes on Rd + Rs
1100
ORR Rd, Rs
ORRS Rd, Rd, Rs
Rd: = Rd OR Rs
1101
MUL Rd, Rs
MULS Rd, Rs, Rd
Rd: = Rs * Rd
1110
BIC Rd, Rs
BICS Rd, Rd, Rs
Rd: = Rd AND NOT Rs
1111
MVN Rd, Rs
MVNS Rd, Rs
Rd: = NOT Rs
Summary of Contents for S3C2500B
Page 2: ...S3C2500B 32 BIT RISC MICROPROCESSOR USER S MANUAL Revision 1 ...
Page 17: ......
Page 25: ......
Page 80: ...PRODUCT OVERVIEW S3C2500B 1 46 NOTES ...
Page 296: ...MEMORY CONTROLLER S3C2500B 5 60 NOTES ...
Page 531: ...GDMA CONTROLLER S3C2500B 12 24 NOTES ...
Page 593: ...I O PORTS S3C2500B 15 12 NOTES ...