
7700 FAMILY SOFTWARE MANUAL
4–4
4.1.2 Arithmetic instructions
The arithmetic instructions perform addition, subtraction, multiplication, division, logical operation, comparison,
rotation, shifting and sign/zero extension of register and memory contents.
The following table summarizes the arithmetic instructions supported:
Note. The instructions with the mark “ * ” can be used in the 7750 Series only.
INST R UCT IONS
4.1 Instruction set
Description
Adds the contents of the accumulator, the contents of memory and the contents of the
carry flag.
Subtracts the contents of memory and the complement of the carry flag from the con-
tents of the accumulator.
Increments the accumulator or memory contents by 1.
Decrements the accumulator or memory contents by 1.
Increments the contents of the index register X by 1.
Decrements the contents of the index register X by 1.
Increments the contents of the index register Y by 1.
Decrements the contents of the index register Y by 1.
Multiples the contents of the accumulator A and the contents of memory.
Multiply the contents of the accumulator A and the contents of memory with sign.
Divides the numeric value whose lower byte is the contents of the accumulator A and
upper byte is the contents of the accumulator B by the contents of memory.
Divides the numeric value whose lower byte is the contents of the accumulator A and
upper byte is the contents of the accumulator B by the contents of memory with sign.
Performs logical AND between the contents of the accumulator and the contents
of memory.
Performs logical OR between the contents of the accumulator and the contents of
memory.
Performs logical exclusive-OR between the contents of the accumulator and the con-
tents of memory.
Compares the contents of the accumulator with the contents of memory.
Compares the contents of the index register X and the contents of memory.
Compares the contents of the index register Y and the contents of memory.
Shifts the contents of the accumulator or memory to the left by 1 bit.
Shifts the contents of the accumulator or memory holding sign to the right by 1 bit.
Shifts the contents of the accumulator or memory to the right by 1 bit.
Links the contents of accumulator or memory with the carry flag, and rotates the result
to the left by 1 bit.
Links the contents of accumulator or memory with the carry flag, and rotates the result
to the right by 1 bit.
Rotates the contents of the accumulator A to the left by the specified number of bits.
Extend the low-order 8 bits of accumulator to 16 bits by sign extending.
Extend the low-order 8 bits of accumulator to 16 bits by zero extending.
Category
Addition,
Subtraction,
Multiplica-
tion,
Division
Instruction
ADC
SBC
INC
DEC
INX
DEX
INY
DEY
MPY
MPYS*
DIV
DIVS*
AND
ORA
EOR
CMP
CPX
CPY
ASL
ASR*
LSR
ROL
ROR
RLA
EXTS*
EXTZ*
Shifting,
Rotation
Comparison
Logical op-
eration
Extension
with sign /
zero