
Chapter 5
Chapter 5
Instruction Set
5.1 Introduction
The EM6000 Series’ instruction set consists of 56 instructions. Each instruction
is a 13-bit word divided into an OPCODE and one or two operands. The opcode
specifies the instruction type, while the operands further specify the operation
of instruction. The instruction symbols (abbreviations) used in the instruction
set are listed as follows
:
Symbol
Meaning
A ACC,
accumulator
R
RAM or control register
k
8-bit or 10-bit constant
b
Specify bit location for bit manipulation instruction
Z Zero
flag
C Carry
flag
DC Auxiliary
carry
flag
T
WDT time-out flag
P
Power down flag
n 3-bit
constant
Note:
The immediate value (constant) operand specified by “k” must
be prefixed with an “@” sign.
The numeric representation is listed in the following table. The characters are
none case-sensitive.
Decimal
0
1
128
255
Binary
0b00000000 or
00000000B
0b00000001 or
00000001B
0b10000000 or
10000000B
0b11111111 or
11111111B
Hexadecimal
0x00 or 00h
0x01 or 01h
0x80 or 80h
0xFF or 0FFh
In hexadecimal representation, if the leading character is not a digit, a “0” prefix
must be added. For example, use “0FFh” or “0xFF” instead of “FFh”.
EM60000 Series User’s Manual
Instruction Set
•
47