Check the readings (8bytes)whether they are positive and negative. Add all positive readings and reject all negative readings in assembly language 8085
Answers
Answered by
0
Answer:
A number is said to be odd if its lower bit is 1 otherwise even. Therefore to identify whether the number is even or odd, we perform AND operation with 01 by the help of ANI instruction. If number is odd then we will get 01 otherwise 00 in accumulator. ANI instruction also affect the flags of 8085. Therefore if accumulator contains 00 then zero flag becomes set otherwise reset.
Explanation:
Similar questions
English,
2 months ago
Physics,
2 months ago
English,
4 months ago
English,
4 months ago
Environmental Sciences,
10 months ago
English,
10 months ago
Computer Science,
10 months ago