Advertisements
Advertisements
Question
State any six Arithmetical and Logical Instructions of 8085 MPU.
Solution
Arithmetical Instructions:
(1) ADD r : [ADD REGISTER]
Format : [A]←[A]+[r]
Addressing : Register addressing
Group : Arithmetic group
Bytes : 1 byte
Flag : Al
(2) ADI data : [ADD IMMEDIATE TO ACCUMULATOR]
Format : [A]←[A]+ data(byte 2)
Addressing : Immediate addressing
Group : Arithmetic group
Bytes : 2 bytes
Flag : All
(3) SUB r : [SUBTRACT REGISTER FROM ACCUMULATOR]
Format : [A]←[A]-[r]
Addressing : Register addressing
Group : Arithmetic instructions group
Bytes : 1 byte
Flag : All
Logical Instructions:
(1) ANA r : [LOGICAL AND WITH ACCUMULATOR]
Format : [A]←[A]∧[r]
Addressing : Register addressing
Group : Logical group
Bytes : 1 byte
Flag : S, Z, P are modified Cy = 0, Ac = 1
(2) ANI data : [ADD IMMEDIATE WITH ACCUMULATOR]
Format : [A]←[A] ∧ data
Addressing : Immediate addressing
Group : Logical group
Bytes : 2 bytes
Flag : S, Z, P are modified Cy = 0, Ac = 1
(3) ORA M : [LOGICAL OR WITH MEMORY]
Format : [A]←[A] ∨ [[H][L]]
Addressing : Register Indirect
Group : Logical group
Bytes : 1 byte
Flag : S, Z, P are modified Ac and Cy are rest