yea, the "units" between the genes have nothing to do with the genes in question (gene A and gene B - gene C will have nothing to do with A or B but is still present on the chromosomes as a separate gene for reference). remember, for homologous chromosomes there are similar genes (A, B, C, etc...), just different alleles (A,a; B,b; C,c).
SET 1
----A-------------c----B-------O----------- (chromosome 1)
----a-------------C----b-------O----------- (chromosome 2)
SET 2
----A---B---------c------------O----------- (chromosome 1)
----a---b---------C------------O----------- (chromosome 2)
now if you were to randomly pick one point for crossing over to take place in the first set of chromosomes you might get something like this...
----A---/-----------C---b------O----------- (chromosome 1)
----a---/-----------c---B------O----------- (chromosome 2)
now you can see that on chromosome 1 there is A and b, and on chromosome 2 you have a with B. if these two chromosomes were to split, you now have independent assortment.
--------------------------------------------------------------------------
now for the second scenerio...
if a random crossover were to take place on the second set (genes A and B are closer now) we might get something like this...
-----A----B------/-------C------O-------------- (chromosome 1)
-----a----b------/-------c------O-------------- (chromosome 2)
if you were to just look at genes A and B, you would think there had not been any crossing over...but looking at gene C you can see that there has. the fact that gene A and gene B were so close together on the chromosome made the chance of the crossing over to take place is that small space between them less likely.
that's all i got 😀