English
Language : 

SM5K3 Datasheet, PDF (23/28 Pages) Sharp Electrionic Components – 4-Bit Single-Chip Microcomputers(Controllers With 10-Bit A/D Converter)
INSTRUCTION SET
Definition of Symbols
M
: Content of RAM at the address defined
by the B register.
←
: Transfer direction
∪
: Logical OR
∩
: Logical AND
⊕
: Exclusive OR
Ai
: An i bit of A register (i = 3 to 0)
Push : Saves the contents of PC to stack
register SR.
Pop : Returns the contents saved in the stack
register back to PC.
Pj
: Indicates output latch register or input
register. Pj ( j = 0, 1, 2, 3, 4, 5)
Rj
: Mode register. Rj register ( j = 3, A, B,
C, E, F)
ROM ( ) : Content stored in ROM location defined
by the value in ( ).
CY : Carry in ALU (independent of C flag)
The CY(carry) is a signal which is
generated when the ALU has been
carried by the execution of a command.
It is different from the C flag.
X
: Used to represent a group of bits in the
content of a register or memory. For
example, the X in the LDAX instruction
denotes the lower 2 digits (I1 and I0) of A
register.
• A bit in a register is affixed to the register symbol,
e.g. a bit (i = 0, 1, 2, 3....) of X register is
expressed as Xi and P (R) register as P (R) i.
• Increment means binary addition of 1H and
decrement addition of FH.
• Skipping an instruction means to ignore that
instruction and to do nothing until starting the next
instruction. In this sense, an instruction to be
skipped is treated as an NOP instruction.
Skipping 1-byte instruction requires 1-cycle, and
2-byte instruction 2-cycle. Skipping 1-byte 2-cycle
instruction requires 1-cycle.
SM5K3/SM5K4/SM5K5
Instruction Summary
MNEMONIC MACHINE CODE
OPERATION
ROM Addressing Instructions
TR x
80 to BF PL←x (I5-I0)
TL xy
E0 to E7, PU←x (I11-I6)
00 to FF PL←y (I5-I0)
TRS x
Push, PU←01H,
C0 to DF
PL←x (I4, I3, I2, I1, I0)
CALL xy
F0 to F7
00 to FF
Push, PU←x (I11-I6)
PL←y (I5-I0)
RTN
7D
Pop
RTNS
RTNI
7E
Pop, Skip the next step
7F
Pop, IME←1
LAX x
LBMX x
LBLX x
Data Load Instructions
10 to 1F A←x (I3-I0)
30 to 3F BM←x (I3-I0)
20 to 2F BL←x (I3-I0)
LDA x
A←M, BMi←BMi ⊕ x (I1, I0),
50 to 53
(i = 1, 0)
EXC x
M↔A, BMi←BMi ⊕ x (I1, I0),
54 to 57
(i = 1, 0)
EXCI x
58 to 5B
M↔A, BL←BL+1
BMi←BMi ⊕ x (I1, I0), (i = 1, 0)
Skip the next step, if result
EXCD x
5C to 5F
of BL = 0
M↔A, BL←BL–1
BMi←BMi ⊕ x (I1, I0), (i = 1, 0)
Skip the next step, if result
EXAX
ATX
EXBM
EXBL
EX
of BL is = FH
64
A↔X-reg
65
X-reg←A
66
BM↔A
67
BL↔A
68
B↔SB
- 23 -