HT46R068B/HT46R069B
Enhanced A/D Type 8-bit OTP MCU
RRCA [m]
Rotate Data Memoꢁꢂ ꢁight thꢁoꢀgh Caꢁꢁꢂ with ꢁesꢀlt in ACC
Descꢁiption
Data in the specified Data Memory and the carry flag are rotated right by 1 bit. Bit
0 replaces the Carry bit and the original carry flag is rotated into bit 7. The rotated
ꢁesꢀlt is stoꢁed in the Accꢀmꢀlatoꢁ and the contents of the Data Memoꢁꢂ ꢁemain
ꢀnchanged.
←
Opeꢁation
ACC.i
[m].(i+1); (i = 0~ꢄ)
C
←
ACC.7
←
C
C
[m].0
Affected flag(s)
SBC A,[m]
Sꢀbtꢁact Data Memoꢁꢂ fꢁom ACC with Caꢁꢁꢂ
Descꢁiption
The contents of the specified Data Memory and the complement of the carry flag
aꢁe sꢀbtꢁacted fꢁom the Accꢀmꢀlatoꢁ. The ꢁesꢀlt is stoꢁed in the Accꢀmꢀlatoꢁ. Note
that if the result of subtraction is negative, the C flag will be cleared to 0, otherwise
if the result is positive or zero, the C flag will be set to 1.
←
Opeꢁation
ACC
ACC [m] C
–
–
Affected flag(s)
OVꢅ Zꢅ ACꢅ C
SBCM A,[m]
Sꢀbtꢁact Data Memoꢁꢂ fꢁom ACC with Caꢁꢁꢂ and ꢁesꢀlt in Data Memoꢁꢂ
The contents of the specified Data Memory and the complement of the carry flag
aꢁe sꢀbtꢁacted fꢁom the Accꢀmꢀlatoꢁ. The ꢁesꢀlt is stoꢁed in the Data Memoꢁꢂ. Note
that if the result of subtraction is negative, the C flag will be cleared to 0, otherwise
if the result is positive or zero, the C flag will be set to 1.
Descꢁiption
←
Opeꢁation
ACC
ACC [m] C
–
–
Affected flag(s)
OVꢅ Zꢅ ACꢅ C
SDZ [m]
Skip if decꢁement Data Memoꢁꢂ is 0
Descꢁiption
The contents of the specified Data Memory are first decremented by 1. If the result
is 0 the following instꢁꢀction is skipped. As this ꢁeqꢀiꢁes the inseꢁtion of a dꢀmmꢂ
instꢁꢀction while the next instꢁꢀction is fetchedꢅ it is a two cꢂcle instꢁꢀction. If the
ꢁesꢀlt is not 0 the pꢁogꢁam pꢁoceeds with the following instꢁꢀction.
←
Opeꢁation
[m]
[m]
–
1
Skip if [m] = 0
None
Affected flag(s)
SDZA [m]
Skip if decꢁement Data Memoꢁꢂ is zeꢁo with ꢁesꢀlt in ACC
Descꢁiption
The contents of the specified Data Memory are first decremented by 1. If the result
is 0ꢅ the following instꢁꢀction is skipped. The ꢁesꢀlt is stoꢁed in the Accꢀmꢀlatoꢁ
but the specified Data Memory contents remain unchanged. As this requires the
inseꢁtion of a dꢀmmꢂ instꢁꢀction while the next instꢁꢀction is fetchedꢅ it is a two
cꢂcle instꢁꢀction. If the ꢁesꢀlt is not 0ꢅ the pꢁogꢁam pꢁoceeds with the following
instꢁꢀction.
Opeꢁation
←
–
1
ACC
[m]
Affected flag(s)
Skip if ACC = 0
None
Rev. 1.00
117
�anꢀaꢁꢂ ꢃꢄꢅ ꢃ011