CALL address
Machine Code
Description
Operation
CLC
Machine Code
Description
Operation
DAA
Machine Code
Description
Operation
DEC A
Machine Code
Description
Operation
DEC Rn
Machine Code
Description
Operation
DEC [R1R0]
Machine Code
Description
Operation
HT13J0
Subroutine call
1111aaaa aaaaaaaa
The program counter bits 0 1 1 are saved in the stack. The program coun-
ter is then loaded from the directly-specified address.
Stack ¬ PC+2
PC ¬ address
Clear carry flag
00101010
The carry flag is reset to 0
C¬0
Decimal Adjust accumulator
00110110
The accumulator value is adjusted to the BCD (Binary Code Decimal)
code, if the contents of the accumulator is greater than 9 or C (Carry flag)
is 1.
If ACC>9 or CF=1 then
ACC ¬ ACC+6, C ¬ 1
else
ACC ¬ ACC, C ¬ C
Decrement accumulator
00111111
Data in the accumulator is decremented by 1. Carry flag is not affected.
ACC ¬ ACC 1
Decrement register
0001nnn1
Data in the working register "Rn" is decremented by 1. Carry flag is not
affected.
Rn ¬ Rn 1; Rn=R0, R1, R2, R3, R4, for n=0, 1, 2, 3, 4
Decrement data memory
00001101
Data in the data memory specified by the register pair "R1,R0" is decre-
mented by 1. Carry flag is not affected.
M(R1,R0) ¬ M(R1,R0) 1
19
May 19, 1999