The other answers are fine but I prefer to use more affine formalism.
In an affine space, we can see a point as the result of the external operation point + vector = point. The points you are searching are the chain of results starting from A and adding a vector colinear to XY and , as stated, of length 1.
Then, here, we have to compute the vector XY and to divide it by its norm to get a length of one unit. For convenience, let's rename X and Y : A and B.
$\vec {AB} = \vec {( B_x - A_x, B_y - A_y )}$
vector $norm(\vec {AB} ) = (( B_x - A_x )^2 + ( B_y - A_y )^2)^{1/2}$
Then our unit vector on the line is
$\vec u = \vec {( \frac{B_x - A_x}{(( B_x - A_x )^2 + ( B_y - A_y )^2)^{1/2}}, \frac{B_y - A_y}{(( B_x - A_x )^2 + ( B_y - A_y )^2)^{1/2}} )}$
To get the next point from the current point , you add $\vec u$ until you stop on or else after the target.
Remains a last question : will the target be in these steps or between 2 stop points ? Merely, its depends of the length of AB ( the original XY ) : it will be fine only if the length may be expressed by an integer times the length unit.
Finally, the searched points are $ P_0 = A$ , $P_1 = A + \vec u$ , $P_{12} = A + 12 * \vec u$ , etc
Application with $A_x=5 , Ay=10 , B_x = 20$ and $B_y = 30$ :
$norm(\vec {AB} ) = (( B_x - A_x )^2 + ( B_y - A_y )^2)^{1/2} = (( 20 - 5 )^2 + ( 30 - 10 )^2)^{1/2} = 25$ which is an integer. Fine, the target will be reached exactly.
$\vec u = \vec {( \frac{B_x - A_x}{25}, \frac{B_y - A_y}{25} )} = \vec {( \frac{15}{25}, \frac{20}{25} )} = \vec {( \frac{3}{5}, \frac{4}{5} )}$
and finaly compute the points with the point + vector operation. For example $P_{12} = A + 12 * \vec u = (5,10) + \vec {( \frac{12 \times 3}{5}, \frac{12 \times 4}{5} )} = (5+\frac{12 \times 3}{5},10+\frac{12 \times 4}{5}) $