I\'m messing with assembly language programming and I\'m curious how I could tell if a number is a multiple of 4 using the logic operator AND?
I know how to do it us
A number is a multiple of 4 if its lower 2 bits are 0, so you can simply shift the number right twice and check shifted bits for 0.