well, as someone already stated, that LineLen routine just doesn't do anything useful.
But I think this can be accomplished in one line, using modulo division, just divide y by 25, and if the "remainder" (from hand calculated long division)
is zero then you have a multiple of 25, and its time to go to the next line.
I do not know how to write that in Amiga basic, but here is some pseudo code:
after printing x, then just check:
if x%25=0 then print;
EDITED......
oh crud, just saw someone already gave the answer, well, let me say I agree!!!
;-) ;-) ;-)