Yes it does. Say it returns 3. 3 in binary is 11. So that means that the sprite is being animated for b001 and b002 (unless it starts from 0).