MC68HC711G5 MOTOROLA [Motorola, Inc], MC68HC711G5 Datasheet - Page 156

no-image

MC68HC711G5

Manufacturer Part Number
MC68HC711G5
Description
High-density Complementary Metal Oxide Semiconductor (HCMOS) Microcontroller
Manufacturer
MOTOROLA [Motorola, Inc]
Datasheet
12.3.1.2
This group of instructions supports arithmetic operations on a variety of operands. 8 and 16-bit
operations are supported directly and can easily be extended to support multiple word operands.
Twos complement (signed) and binary (unsigned) operations are supported directly. BCD arithmetic
is supported by following normal arithmetic instruction sequences with the decimal adjust accumulator
A (DAA) instruction to restore results to BCD format. Compare instructions perform a subtraction
within the CPU to update the condition code bits without altering either operand. Test instructions
are provided but are seldom needed since almost all other operations automatically update the
condition code bits anyway.
MOTOROLA
12-6
Add Accumulators
Add Accumulator B to X
Add Accumulator B to Y
Add with Carry to A
Add with Carry to B
Add Memory to A
Add Memory to B
Compare A to B
Compare A to Memory
Compare B to Memory
Decimal Adjust A (for BCD
Decrement Memory Byte
Decrement Accumulator A
Decrement Accumulator B
Increment Memory Byte
Increment Accumulator A
Increment Accumulator B
Twos Complement Memory Byte
Twos Complement Accumulator A
Twos Complement Accumulator B
Subtract with Carry from A
Subtract with Carry from B
Subtract Memory from A
Subtract Memory From B
Test Memory for Zero or Minus
Test A for Zero or Minus
Test B for Zero or Minus
Add Memory to D (16-bit
Compare D to Memory (16-bit
Subtract Memory From D (16-bit
Arithmetic Operations
Function
CPU, ADDRESSING MODES AND INSTRUCTION SET
Table 12-2. Arithmetic Operations
Mnemonic
ADCA
ADCB
ADDA
ADDB
ADDD
CMPA
CMPB
DECA
DECB
NEGA
NEGB
SBCA
SBCB
SUBA
SUBB
SUBD
TSTA
TSTB
INCA
INCB
ABA
ABX
ABY
CBA
CPD
DAA
DEC
NEG
TST
INC
IMM
X
X
X
X
X
X
X
X
X
X
X
X
X
DIR
X
X
X
X
X
X
X
X
X
X
X
X
X
EXT
X
X
X
X
X
X
X
X
X
X
X
X
X
X
X
X
X
INDX
X
X
X
X
X
X
X
X
X
X
X
X
X
X
X
X
X
INDY
X
X
X
X
X
X
X
X
X
X
X
X
X
X
X
X
X
MC68HC11G5
INH
X
X
X
X
X
X
X
X
X
X
X
X
X

Related parts for MC68HC711G5