Suppose I have a to compare a data register and i have to compare it to equalling one of 2 numbers. how would i go about that?
I know how to do it for just comparing with one number not 2.
CMP #0, D3
BNE ELSE
REST OF THE CODE HERE
How do i compare for when I want to compare it with either 0 or some other number like 7. In c++ you would say
if(x == 0 || x == 7)
{code here}
else
{code here}