Format 5: Hi-Register Operations/Branch Exchange; Operation - Samsung S3C2500B User Manual

Table of Contents

Advertisement

S3C2500B

3.24 FORMAT 5: HI-REGISTER OPERATIONS/BRANCH EXCHANGE

15
14
13
0
0
0

3.24.1 OPERATION

There are four sets of instructions in this group. The first three allow ADD, CMP and MOV operations to be
performed between Lo and Hi registers, or a pair of Hi registers. The fourth, BX, allows a Branch to be performed
which may also be used to switch processor state. The THUMB assembler syntax is shown in Table 3-12.
The action of H1 = 0, H2 = 0 for Op = 00 (ADD), Op = 01 (CMP) and Op = 10 (MOV) is undefined, and should
not be used.
12
11
10
9
0
0
0
[2:0] Destination Register
[5:3] Source Register
[6] Hi Operand Flag 2
[7] Hi Operand Flag 1
[9:8] Opcode
Figure 3-34. Format 5
In this group only CMP (Op = 01) sets the CPSR condition codes.
8
7
6
5
Op
H1
H2
NOTE
INSTRUCTION SET
3
2
Rs/Hs
Rd/Hd
0
3-73

Advertisement

Table of Contents
loading

Table of Contents