Continue to Site

Welcome to our site!

Electro Tech is an online community (with over 170,000 members) who enjoy talking about and building electronic circuits, projects and gadgets. To participate you need to register. Registration is free. Click here to register now.

  • Welcome to our site! Electro Tech is an online community (with over 170,000 members) who enjoy talking about and building electronic circuits, projects and gadgets. To participate you need to register. Registration is free. Click here to register now.

i need program in mechine language about odd and even numbers

Status
Not open for further replies.

diod

New Member
hi
i need program with mechine or accembly language to recognise odd and even numbers.if number is odd print 1 and if it is even print 0.
thanks
 
hi,
If the numbers are ODD then Bit 0 will be '1' and if EVEN Bit 0 will be '0'

So just test bit 0.

Is this what you are asking.?
 
And what is the machine?
 
Status
Not open for further replies.

Latest threads

New Articles From Microcontroller Tips

Back
Top