English
Language : 

HTG13J0 Datasheet, PDF (27/30 Pages) Holtek Semiconductor Inc – 4-Bit Microcontroller
RETI
Machine Code
Description
Operation
RL A
Machine Code
Description
Operation
RLC A
Machine Code
Description
Operation
RR A
Machine Code
Description
Operation
RRC A
Machine Code
Description
Operation
HT13J0
Return from interrupt subroutine
00101111
The program counter bits 0~11 are restored from the stack. The carry
flag before entering interrupt service routine is restored.
PC ¬ Stack
C ¬ C (before interrupt service routine)
Rotate accumulator left
00000001
The contents of the accumulator are rotated left 1 bit. Bit 3 is rotated to
bit 0 and carry flag.
An+1 ¬ An; An: accumulator bit n (n=0, 1, 2)
A0 ¬ A3
C ¬ A3
Rotate accumulator left through carry
00000011
The contents of the accumulator are rotated left 1 bit. Bit 3 replaces the
carry bit; the carry bit is rotated into the bit 0 position.
An+1 ¬ An; An: Accumulator bit n (n=0, 1, 2)
A0 ¬ C
C ¬ A3
Rotate accumulator right
00000000
The contents of the accumulator are rotated right 1 bit. Bit 0 is rotated to
bit 3 and carry flag.
An ¬ An+1; An: Accumulator bit n (n=0, 1, 2)
A3 ¬ A0
C ¬ A0
Rotate accumulator right through carry
00000010
The contents of the accumulator are rotated right 1 bit. Bit 0 replaces
the carry bit; the carry bit is rotated into the bit 3 position.
An ¬ An+1; An: Accumulator bit n (n=0,1,2)
A3 ¬ C
C ¬ A0
27
May 19, 1999