5
INSTRUCTION SET
S1C33 FAMILY C33 PE CORE MANUAL
EPSON
33
5
.
9
Arithmetic Operation Instructions
The instruction set of the C
33
PE Core supports add/subtract, compare, and multiply instructions for arithmetic
operations. (The multiply instructions are described in the next section.)
add
Addition
adc
Addition with carry
sub
Subtraction
sbc
Subtraction with borrow
cmp
Comparison
The above arithmetic operations are performed between one general-purpose register and another (R
0
–R
15
), or
between a general-purpose register and an immediate. Furthermore, the
add
and
sub
instructions can perform
operations between the SP and immediate. Immediates in sizes smaller than word, except for the
cmp
instruction,
are zero-extended when operation is performed.
The
cmp
instruction compares two operands, and may alter a flag, depending on the comparison result. Basically, it
is used to set conditions for conditional jump instructions. If an immediate smaller than word in size is specified as
the source, it is sign-extended when comparison is performed.
Содержание S1C33 Series
Страница 1: ...CMOS 32 BIT SINGLE CHIP MICROCOMPUTER Core Manual S1C33 Family C33 PE ...
Страница 4: ......