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.

Testing if an entire register is 0 on the pic

Status
Not open for further replies.

bitem2k

New Member
Is there anyway of telling if the entire register byte is 0, instead of checking each bit individually?

i,e check if all bits of a port are off.

many thanks
 
Another way would be to move the file into itself with mov File,F. This instruction does nothing except set the zero flag if the file is zero.

Mike.
 
Status
Not open for further replies.

Latest threads

New Articles From Microcontroller Tips

Back
Top