Science, asked by latabhatt818, 4 months ago

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 Anonymous
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