HMC5843L Compass Chip simple programing question

how would I incorporate the y axis to return a direction (in degrees)?
with just the x I find it goes from 0 to 270 and back