Could you be rolling over your HP to 0?
Experimenting with those values, and finding out what they mean is a huge part of the fun of the game