from the pbp manual
ATN returns the 8-bit arctangent of 2 two's-complement 8-bit values. If a byte is
greater than 127 (high bit set), it is treated as a negative value. The arctangent
returned is in binary radians, 0 to 255, representing a range of 0 to 359 degrees.