---------------------------------------------------------------------------HMCS404CL
(P)
Referred ROM Address
(a)
Address Designation
:
If
RO
s
= 1
:
If
R0
9
= 1
(b) Pattern
Output
Fig. 23 P Instruction
• P
Instruction
The P instruction refers
ROM
data addressed
by
Table Data
Addressing.
ROM
data addressed also determine its destination.
When
bit
8
in
referred
ROM
data
is
"1",
8 bits
of
referred
t---::=-:------I~~:~-1)+
255
8R
A/4.A
2S6n +
254
t--
__
BR_B_BB
__
-l
~~:~n+/,~5
BBB
NQP
Fig. 24 The Branch Destination by BR
Instruction
on
the Boundary between
Pages
365
ROM
data are written into the accumulator and B Register.
When bit 9
is
"1",
8 bits
of
referred ROM data are written into
the
Rl
and R2 port
output
register. When
both
bit 8 and 9 are
"1
",
ROM
data are written into the accumulator and B Register
and also to the
Rl
and R2 port output register at a same time.
The P instruction has
no
effect on
the
program counter.
•
INSTRUCTION
SET
The HMCS400 series provide 99 instructions. These instruc-
tions are classified into 10 groups
as
follows;
(1) Immediate Instruction
(2) Register-to-Register Instruction
(3)
RAM
Address Instruction
(4)
RAM
Register Instruction
(5) Arithmetic Instruction
(6) Compare Instruction
(7)
RAM
Bit Manipulation Instruction
(8)
ROM
Address Instruction
(9)
Input/Output
Instruction
(10) Control Instruction