I'm using Tasm and Tlink to compile and create the application. My problem is that when first point click's Y position on the screen is > the second Y position then the line doesn't draw. Also, I can't draw the line all around the screen. If the angle(slope) is greater or less then a certain number then it won't draw or it will be weird (I can't seem to figure it out).
I don't know much about ASM, but I've played around with Bresenham's line algorithm a long time ago.
This is soemthing that pretty much happens when you don't understand the algorithm and don't implement it correctly.
Especially watch out for your signs and register sizes. I don't think ASM is signed? Somebody correct me if I'm wrong.
And yes, I think the algorithm only works up to 45 degrees and is sensative to which quadrant it draws to. You'll likely have to swap the X & Y coordinates above 45 degrees.
Is this for a class? It's very unusual for soembody to do this in ASM anymore. A higher level language would work far better.