HT47C20 Holtek Semiconductor Inc, HT47C20 Datasheet - Page 52

no-image

HT47C20

Manufacturer Part Number
HT47C20
Description
8-Bit Microcontroller
Manufacturer
Holtek Semiconductor Inc
Datasheet
SIZA [m]
Description
Operation
Affected flag(s)
SNZ [m].i
Description
Operation
Affected flag(s)
SUB A,[m]
Description
Operation
Affected flag(s)
SUBM A,[m]
Description
Operation
Affected flag(s)
Increment data memory and place result in ACC, skip if zero
The contents of the specified data memory is incremented by one. If the
result is zero, the next instruction is skipped and the result stored in the
accumulator. The data memory remains unchanged. If the result is zero,
the following instruction, fetched during the current instruction execu-
tion, is discarded and a dummy cycle replaced to get the proper instruc-
tion. This is a 2-cycle instruction. Otherwise proceed with the next
instruction.
Skip if ([m]+1)=0, ACC ¬ ([m]+1)
Skip if bit i of the data memory is not zero
If bit i of the specified data memory is not zero, the next instruction is
skipped. If bit i of the data memory is not zero, the following instruction,
fetched during the current instruction execution, is discarded and a
dummy cycle is replaced to get the proper instruction. This is a 2-cycle in-
struction. Otherwise proceed with the next instruction.
Skip if [m].i¹0
Subtract data memory from accumulator
The specified data memory is subtracted from the contents of the accu-
mulator, leaving the result in the accumulator.
ACC ¬ ACC+[m]+1
Subtract data memory from accumulator
The specified data memory is subtracted from the contents of the accu-
mulator, leaving the result in the data memory.
[m] ¬ ACC [m]+1
TC2
TC2
TC2
TC2
¾
¾
¾
¾
TC1
TC1
TC1
TC1
¾
¾
¾
¾
TO
TO
TO
TO
¾
¾
¾
¾
52
PD
PD
PD
PD
¾
¾
¾
¾
OV
OV
OV
OV
¾
¾
Ö
Ö
¾
¾
Z
Z
Z
Z
Ö
Ö
AC
AC
AC
AC
¾
¾
Ö
Ö
¾
¾
C
C
C
C
Ö
Ö
January 18, 2000
HT47C20

Related parts for HT47C20