Special Instruction; Bit Operation Instructions; Stack Instructions - NEC PD75402A User Manual

4-bit single-chip microcomputer
Table of Contents

Advertisement

9.1
SPECIAL INSTRUCTIONS
This section outlines the special instructions of the PD75402A instruction set.
9.1.1
Bit Manipulation Instructions
PD75402A bit manipulation can be performed by various instructions, such as the following:
(a)
Bit set
:
(b)
Bit clear :
(c)
Bit test :
(d)
Bit test :
(e)
Bit test & clear :
(f)
Boolean operation:
fmem. bit is the bit address specified by special address bit manipulation addressing.
Especially, since I/O ports can always use all the bit manipulation instructions above, I/O port operation can be
performed very efficiently.
9.1.2

Stack Instructions

The following two kinds of stack instructions are available with the PD75402A.
(a)
MOV A, #n4 or MOV XA, #n8
(b)
MOV HL, #n8
"Stack" signifies that these two kinds of instructions are placed in contiguous addresses.
Example
A0 :
MOV A,
A1 :
MOV A,
XA7: MOV XA, #07
When stack instructions are stacked such as in the example above, when the address executed first is A0, it is
executed by replacing the next two instructions with NOP instructions. When the address executed first is A1, it is
executed by replacing the next instruction with an NOP instruction. That is, only the instruction executed first is
effective, all the stack instructions following it are processed as NOP instructions.
Constants can be efficiently set to accumulator (A register, register pair XA) and data pointer (register pair HL)
by using these stack instructions.
CHAPTER 9. INSTRUCTION SET
SET1
mem. bit
SET1
fmem. bit
CLR1
mem. bit
CLR1
fmem. bit
SKT
mem. bit
SKT
fmem. bit
SKF
mem. bit
SKF
fmem. bit
SKTCLR
fmem. bit
AND1
CY, fmem. bit
OR1
CY, fmem. bit
XOR1
CY, fmem. bit
#0
#1
149

Advertisement

Table of Contents
loading

This manual is also suitable for:

Pd75p402

Table of Contents