Epson CMOS 32-Bit Single Chip Microcomputer S1C33L03 Uživatelský manuál Strana 41

  • Stažení
  • Přidat do mých příruček
  • Tisk
  • Strana
    / 181
  • Tabulka s obsahem
  • KNIHY
  • Hodnocené. / 5. Na základě hodnocení zákazníků
Zobrazit stránku 40
5 INSTRUCTION SET
S1C33 FAMILY C33 PE CORE MANUAL
EPSON
33
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.)
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 (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.
Zobrazit stránku 40
1 2 ... 36 37 38 39 40 41 42 43 44 45 46 ... 180 181

Komentáře k této Příručce

Žádné komentáře