Table 18-1. instruction set summary -3, Maxq family user’s guide, Table 18-1. instruction set summary – Maxim Integrated MAXQ Family User Manual
Page 180
18-3
MAXQ Family User’s Guide
MNEMONIC
DESCRIPTION
16-BIT INSTRUCTION
WORD
STATUS BITS
AFFECTED
AP
INC/DEC
NOTES
AND src
Acc
←
Acc AND src
f001 1010 ssss ssss
S, Z
Y
1
OR src
Acc
←
Acc OR src
f010 1010 ssss ssss
S, Z
Y
1
XOR src
Acc
←
Acc XOR src
f011 1010 ssss ssss
S, Z
Y
1
CPL
Acc
←
~Acc
1000 1010 0001 1010
S, Z
Y
NEG
Acc
←
~Acc + 1
1000 1010 1001 1010
S, Z
Y
SLA
Shift Acc left arithmetically
1000 1010 0010 1010
C, S, Z
Y
SLA2
Shift Acc left arithmetically twice
1000 1010 0011 1010
C, S, Z
Y
SLA4
Shift Acc left arithmetically four times
1000 1010 0110 1010
C, S, Z
Y
RL
Rotate Acc left (w/o C)
1000 1010 0100 1010
S
Y
RLC
Rotate Acc left (through C)
1000 1010 0101 1010
C, S, Z
Y
SRA
Shift Acc right arithmetically
1000 1010 1111 1010
C, Z
Y
SRA2
Shift Acc right arithmetically twice
1000 1010 1110 1010
C, Z
Y
SRA4
Shift Acc right arithmetically four times
1000 1010 1011 1010
C, Z
Y
SR
Shift Acc right (0
→
msbit)
1000 1010 1010 1010
C, S, Z
Y
RR
Rotate Acc right (w/o C)
1000 1010 1100 1010
S
Y
LOGICAL
OPERATIONS
RRC
Rotate Acc right (though C)
1000 1010 1101 1010
C, S, Z
Y
MOVE C, Acc.
C
←
Acc.
1110 1010 bbbb 1010
C
MOVE C, #0
C
←
0
1101 1010 0000 1010
C
MOVE C, #1
C
←
1
1101 1010 0001 1010
C
CPL C
C
←
~C
1101 1010 0010 1010
C
MOVE Acc., C
Acc.
←
C
1111 1010 bbbb 1010
S, Z
AND Acc.
C
←
C AND Acc.
1001 1010 bbbb 1010
C
OR Acc.
C
←
C OR Acc.
1010 1010 bbbb 1010
C
XOR Acc.
C
←
C XOR Acc.
1011 1010 bbbb 1010
C
MOVE dst., #1
dst.
←
1
1ddd dddd 1bbb 0111
C, S, E, Z
2
MOVE dst., #0
dst.
←
0
1ddd dddd 0bbb 0111
C, S, E, Z
2
BIT
OPERATIONS
MOVE C, src.
C
←
src.
fbbb 0111 ssss ssss
C
ADD src
Acc
←
Acc + src
f100 1010 ssss ssss
C, S, Z, OV
Y
1
ADDC src
Acc
←
Acc + (src + C)
f110 1010 ssss ssss
C, S, Z, OV
Y
1
SUB src
Acc
←
Acc – src
f101 1010 ssss ssss
C, S, Z, OV
Y
1
SUBB src
Acc
←
Acc – (src + C)
f111 1010 ssss ssss
C, S, Z, OV
Y
1
MATH
SECTION 18: MAXQ FAMILY INSTRUCTION SET SUMMARY
Table 18-1. Instruction Set Summary
Maxim Integrated