English
Language : 

SM8521 Datasheet, PDF (53/56 Pages) Sharp Electrionic Components – 8-Bit Single-Chip Microcomputer
Bit Operation Instructions
INSTRUCTION OPERAND
FUNCTION
BAND
BCLR
BF, src
dst
BF←BF AND src
(Bit And)
dst←0 (Bit Clear)
BCMP
BMOV
BOR
BSET
BF, src
dst, src
dst, src
dst
BF–src (Bit Compare)
dst←src (Bit Move)
dst←BF OR src (Bit OR)
dst←1 (Bit Set)
BTST
dst, src
dst AND src (Bit Test)
BXOR
BF, src
BF←BF XOR src
(Bit Exclusive OR)
Rotate and Shift Instructions
INSTRUCTION OPERAND
FUNCTION
RLC
dst
(Rotate Left through Carry)
RR
dst
(Rotate Right)
RRC
dst
(Rotate Right through Carry)
SLL
dst
(Shift Left Logical)
SRA
dst
(Shift Right Arithmetic)
SRL
dst
(Shift Right Logical)
SWAP dst
(Swap Nibbles)
CPU Control Instructions
INSTRUCTION OPERAND
FUNCTION
CLRC
C←0 (Clear Carry Flag)
COMC
C←NOT C
(Complement Carry Flag)
DI
I←0 (Disable Interrupt)
EI
I←1 (Enable Interrupt)
HALT
Move to HALT mode
(Halt CPU)
NOP
No Opreration
(No Opreration)
SETC
C←1 (Set Carry Flag)
STOP
Go to STOP mode
(Stop CPU)
- 53 -
SM8521