English
Language : 

SM8521 Datasheet, PDF (52/56 Pages) Sharp Electrionic Components – 8-Bit Single-Chip Microcomputer
Arithmetic Operation Instructions
INSTRUCTION OPERAND
FUNCTION
ADC
dst, src
dst←dst+src+C
(Add With Carry)
ADCW
ADD
ADDW
dst, src
dst, src
dst, src
dst←dst+src+C
(Add Word With Carry)
dst←dst+src (Add)
dst←dst+src (Add Word)
CMP
dst, src
dst–src (Compare)
CMPW
DA
DEC
DECW
DIV
EXTS
INC
INCW
MULT
NEG
SBC
SBCW
SUB
SUBW
dst, src
dst
dst
dst
dst, src
dst
dst
dst
dst, src
dst
dst, src
dst, src
dst, src
dst, src
dst–src
(Compare Word)
dst←DA dst
(Decimal Adjust)
dst←dst–1 (Decrement)
dst←dst – 1
(Decrement Word)
dst←dst/src,
src←dst MOD src (Divide)
Extend sign (Extend Sign)
dst←dst+1 (Increment)
dst←dst+1
(Increment Word)
dst←dst x src (Multiply)
dst← –dst (Negate)
dst←dst – src – C
(Subtract With Carry)
dst←dst – src – C
(Subtract Word With Carry)
dst←dst–src (Subtract)
dst←dst – src
(Subtract Word)
SM8521
Logical Operation Instructions
INSTRUCTION OPERAND
FUNCTION
AND
dst, src
dst←dst AND src
(Logical And)
ANDW dst, src
dst←dst AND src
(Logical And Word)
COM
dst
dst←NOT dst
(Complement)
dst←dst OR src
OR
dst, src
(Logical OR)
ORW
dst, src
dst←dst OR src
(Logical OR Word)
XOR
dst, src
dst←dst XOR src
(Logical Exclusive OR)
XORW dst, src
dst←dst XOR src
(Logical Exclusive OR Word)
Program Control Instructions
INSTRUCTION OPERAND
FUNCTION
BBC
src, dst
If src = 0 then PC←PC+dst
(Branch on Bit Clear)
BBS
src, dst
If src = 1 then PC←PC+dst
(Branch on Bit Set)
If cc = true then
BR
cc, dst
PC← PC+dst (Branch)
CALL
dst
SP←SP–2, @SP←PC,
PC←dst (Call Subroutine)
SP←SP – 2, @SP←PC,
CALS
dst
PC←dst
(Short Call Subroutine)
r←r–1, if r ≠ 0 then
DBNZ
r, dst
PC←PC+dst
(Decrement and Branch
on Non-Zero)
PS1←@SP, SP←SP+1,
IRET
PC←@SP, SP←SP+2
(Return from Interrupt)
If cc = true,then PC←dst
JMP
cc, dst
(Jump)
RET
PC←@SP, SP←SP+2
(Logical Exclusive OR Word)
- 52 -