ht82m9aae Holtek Semiconductor Inc., ht82m9aae Datasheet - Page 39

no-image

ht82m9aae

Manufacturer Part Number
ht82m9aae
Description
Usb Mouse Encoder 8-bit Mcu With Eeprom
Manufacturer
Holtek Semiconductor Inc.
Datasheet
RRCA [m]
Description
Operation
Affected flag(s)
SBC A,[m]
Description
Operation
Affected flag(s)
SBCM A,[m]
Description
Operation
Affected flag(s)
SDZ [m]
Description
Operation
Affected flag(s)
SDZA [m]
Description
Operation
Affected flag(s)
Rev. 1.20
Rotate right through carry and place result in the accumulator
Data of the specified data memory and the carry flag are rotated 1 bit right. Bit 0 replaces
the carry bit and the original carry flag is rotated into the bit 7 position. The rotated result is
stored in the accumulator. The contents of the data memory remain unchanged.
ACC.i ¬ [m].(i+1); [m].i:bit i of the data memory (i=0~6)
ACC.7 ¬ C
C ¬ [m].0
Subtract data memory and carry from the accumulator
The contents of the specified data memory and the complement of the carry flag are sub-
tracted from the accumulator, leaving the result in the accumulator.
ACC ¬ ACC+[m]+C
Subtract data memory and carry from the accumulator
The contents of the specified data memory and the complement of the carry flag are sub-
tracted from the accumulator, leaving the result in the data memory.
[m] ¬ ACC+[m]+C
Skip if decrement data memory is 0
The contents of the specified data memory are decremented by 1. If the result is 0, the next
instruction is skipped. If the result is 0, the following instruction, fetched during the current
instruction execution, is discarded and a dummy cycle is replaced to get the proper instruc-
tion (2 cycles). Otherwise proceed with the next instruction (1 cycle).
Skip if ([m]-1)=0, [m] ¬ ([m]-1)
Decrement data memory and place result in ACC, skip if 0
The contents of the specified data memory are decremented by 1. If the result is 0, the next
instruction is skipped. The result is stored in the accumulator but the data memory remains
unchanged. If the result is 0, the following instruction, fetched during the current instruction
execution, is discarded and a dummy cycle is replaced to get the proper instruction (2 cy-
cles). Otherwise proceed with the next instruction (1 cycle).
Skip if ([m]-1)=0, ACC ¬ ([m]-1)
TO
TO
TO
TO
TO
¾
¾
¾
¾
¾
PDF
PDF
PDF
PDF
PDF
¾
¾
¾
¾
¾
OV
OV
OV
OV
OV
¾
¾
¾
Ö
Ö
39
¾
¾
¾
Z
Z
Z
Z
Z
Ö
Ö
AC
AC
AC
AC
AC
¾
¾
¾
Ö
Ö
HT82M9AEE/HT82M9AAE
¾
¾
C
C
C
C
C
Ö
Ö
Ö
August 13, 2007

Related parts for ht82m9aae