Академический Документы
Профессиональный Документы
Культура Документы
The Instructions under this group perform logical operation such as AND, OR, compare, rotate etc.
LOGICAL GROUP
ANA R
(Logically AND content of register with Acc and result in A )
LOGICAL GROUP
ANI Data
(Logically AND immediate data with Acc and result in A )
LOGICAL GROUP
ANA M
(Logically AND content of memory with Acc and result in A )
LOGICAL GROUP
ORA R
(Logically OR register content with Acc and result in A)
LOGICAL GROUP
ORI Data
(Logically OR immediate Data with Acc and result in A ).
LOGICAL GROUP
ORA M
(Logically OR memory content with Acc and result in A).
LOGICAL GROUP
XRA R
(Logically XOR register content with Acc and result in A)
[A] [A]
Example:
[r]
XRA C (XOR the content of C with A). Suppose the Data at C register is 17H. Initially After execution A=10H,C= 17H A=07H,C=17H.
LOGICAL GROUP
XRI Data
(Logically XOR immediate Data with Acc and result in A)
[A] [A]
Example:
[Data]
XRI 17 (XOR the Data with A). Suppose the Data is 17H. Initially After execution A=10H,Data=17H A=07H,Data=17H.
LOGICAL GROUP
XRA M
(Logically XOR memory content with Acc and result in A)
[A] [A]
Example:
[M]
XRA M (XOR the content of memory with A). Suppose the memory content is 17H. Initially After execution A=10H,M= 17H A=07H,M=17H.
LOGICAL GROUP
CMA. (Complement the accumulator) [A] [A]
Example: CMA (Complement the accumulator0
LOGICAL GROUP
RLC (Rotate accumulator left) The content of the accumulator is rotated left by one bit. The seventh bit of the accumulator is moved to carry bit as well as to the zero bit of the accumulator. Only CS flag is affected. [An+1] [An], [A0] [A7], [CS] [A7]
CS
A7
A6
A5
A4
A3
A2
A1
A0
LOGICAL GROUP
RRC. (Rotate accumulator right) The content of the accumulator is rotated right by one bit. The zero bit of the accumulator is moved to the seventh bit as well as to carry bit. Only CS flag is affected. [An] [An+1] , [CS] [A0] , [A7][A0]
CS
A7
A6
A5
A4
A3
A2
A1
A0
LOGICAL GROUP
RAL (Rotate accumulator left through carry) The content of the accumulator is rotated left by one bit. The seventh bit of the accumulator is moved to carry bit & carry bit to the zero bit of the accumulator. Only CS flag is affected. [An+1] [An], [A0] [CS], [CS] [A7]
CS
A7
A6
A5
A4
A3
A2
A1
A0
LOGICAL GROUP
RAR. (Rotate accumulator right through carry) The content of the accumulator is rotated right by one bit. The zero bit of the accumulator is moved to the to carry bit & carry bit to the seventh bit. Only CS flag is affected. [An] [An+1] , [CS] [A0], [A7][CS]
CS
A7
A6
A5
A4
A3
A2
A1
A0