math.answers.com/basic-math/How_To_find_a_number_is_odd_or_even_in_8085

Preview meta tags from the math.answers.com website.

Linked Hostnames

8

Thumbnail

Search Engine Appearance

Google

https://math.answers.com/basic-math/How_To_find_a_number_is_odd_or_even_in_8085

How To find a number is odd or even in 8085? - Answers

every odd no. has "1" in its last bit and every even no has "0" (in binary) eg- 2=0010 ,3=0011 4=0100 ,5=0101....and so on so just logically "AND" the no with "01H" using instruction [HAVING THAT NO. IN ACCUMULATOR (A)] ANI 01H so if the no. is even => A=0 (and zero flag is set i.e. "1" but if the no is odd then => A=1 means zero flag is reset i.e. "0" so using instruction "JZ" you can find if the no. if even or odd. :)



Bing

How To find a number is odd or even in 8085? - Answers

https://math.answers.com/basic-math/How_To_find_a_number_is_odd_or_even_in_8085

every odd no. has "1" in its last bit and every even no has "0" (in binary) eg- 2=0010 ,3=0011 4=0100 ,5=0101....and so on so just logically "AND" the no with "01H" using instruction [HAVING THAT NO. IN ACCUMULATOR (A)] ANI 01H so if the no. is even => A=0 (and zero flag is set i.e. "1" but if the no is odd then => A=1 means zero flag is reset i.e. "0" so using instruction "JZ" you can find if the no. if even or odd. :)



DuckDuckGo

https://math.answers.com/basic-math/How_To_find_a_number_is_odd_or_even_in_8085

How To find a number is odd or even in 8085? - Answers

every odd no. has "1" in its last bit and every even no has "0" (in binary) eg- 2=0010 ,3=0011 4=0100 ,5=0101....and so on so just logically "AND" the no with "01H" using instruction [HAVING THAT NO. IN ACCUMULATOR (A)] ANI 01H so if the no. is even => A=0 (and zero flag is set i.e. "1" but if the no is odd then => A=1 means zero flag is reset i.e. "0" so using instruction "JZ" you can find if the no. if even or odd. :)

  • General Meta Tags

    22
    • title
      How To find a number is odd or even in 8085? - Answers
    • charset
      utf-8
    • Content-Type
      text/html; charset=utf-8
    • viewport
      minimum-scale=1, initial-scale=1, width=device-width, shrink-to-fit=no
    • X-UA-Compatible
      IE=edge,chrome=1
  • Open Graph Meta Tags

    7
    • og:image
      https://st.answers.com/html_test_assets/Answers_Blue.jpeg
    • og:image:width
      900
    • og:image:height
      900
    • og:site_name
      Answers
    • og:description
      every odd no. has "1" in its last bit and every even no has "0" (in binary) eg- 2=0010 ,3=0011 4=0100 ,5=0101....and so on so just logically "AND" the no with "01H" using instruction [HAVING THAT NO. IN ACCUMULATOR (A)] ANI 01H so if the no. is even => A=0 (and zero flag is set i.e. "1" but if the no is odd then => A=1 means zero flag is reset i.e. "0" so using instruction "JZ" you can find if the no. if even or odd. :)
  • Twitter Meta Tags

    1
    • twitter:card
      summary_large_image
  • Link Tags

    16
    • alternate
      https://www.answers.com/feed.rss
    • apple-touch-icon
      /icons/180x180.png
    • canonical
      https://math.answers.com/basic-math/How_To_find_a_number_is_odd_or_even_in_8085
    • icon
      /favicon.svg
    • icon
      /icons/16x16.png

Links

58