5.9 Arithmetic Operation Instructions
The instruction set of the C33 PE Core supports add/subtract, compare, and multiply instructions for arithmetic
operations. (The multiply instructions are described in the next section.)
Addition
add
Addition with carry
adc
Subtraction
sub
Subtraction with borrow
sbc
Comparison
cmp
The above arithmetic operations are performed between one general-purpose register and another (R0–R15), 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 FAMILY C33 PE CORE MANUAL
EPSON
5 INSTRUCTION SET
33