Oh, I probably should explain the "no divides required" when there are two "/2"'s in the equations. In binary, a divide by two is the same as shifting right one bit, an easy operation in Z80. Similarly multiply by two is the same as shifting left one bit....