
INST R UCT IONS
7751 SERIES SOFTWARE MANUAL
4–4
Instruction
ADC
SBC
INC
DEC
INX
DEX
INY
DEY
MPY
MPYS
DIV
DIVS
RMPA
AND
ORA
EOR
CMP
CPX
CPY
ASL
ASR
LSR
ROL
ROR
RLA
EXTS
EXTZ
4.1.2 Arithmetic instructions
The arithmetic instructions perform addition, subtraction, multiplication, division, multiplied accumulation,
logical operation, comparison, rotation, shift and sign/zero extension of register and memory contents.
The following table shows the available instructions for arithmetic operation.
4.1 Instruction set
Category
Addition,
Subtraction,
Multiplica-
tion,
Division
Description
Adds the contents of the accumulator, the contents of a 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 a memory contents by 1.
Decrements the accumulator or a 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 a memory.
Multiples the contents of the accumulator A and the contents of a memory with sign.
Divides the numerical value whose low order is the contents of the accumulator A and
high order is the contents of the accumulator B by the contents of a memory.
Divides the numerical value whose low order is the contents of the accumulator A and
high order is the contents of the accumulator B by the contents of a memory with sign.
Multiples the contents of a memory and another one, and adds the result to the contents
of the accumulator. Repeats these operations by specified times.
Performs logical AND between the contents of the accumulator and a memory.
Performs logical OR between the contents of the accumulator and a memory.
Performs logical exclusive-OR between the contents of the accumulator and a memory.
Compares the contents of the accumulator with the contents of a memory.
Compares the contents of the index register X with the contents of a memory.
Compares the contents of the index register Y with the contents of a memory.
Shifts the contents of the accumulator or a memory to the left by 1 bit.
Shifts the contents of the accumulator or a memory holding sign to the right by 1 bit.
Shifts the contents of the accumulator or a memory to the right by 1 bit.
Links the contents of the accumulator or a memory with the carry flag, and rotates the
result to the left by 1 bit.
Links the contents of the accumulator or a 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.
Extends the low-order 8 bits of the accumulator to 16 bits by sign extension.
Extends the low-order 8 bits of the accumulator to 16 bits by zero extension.
Multiplied
accumulation
Logical op-
eration
Comparison
Shift,
Rotation
Extension
with sign /
zero