DIGIT-ARC read-only archive · snapshot: July 23, 2026

How to draw a line using mouse in asssembly program

6 posts · originally from https://geek.digit.in/community/threads/how-to-draw-a-line-using-mouse-in-asssembly-program.98037/

hrushij
hrushij Original post #1
Sep 19, 2008 at 9:17 PM
Hello friends
I want to make a pint like program.. in Assembly program
Now I want to know that how can I draw a line in using mouse just like in Paint in XP.
dheeraj_kumar
Sep 19, 2008 at 11:03 PM
I can program in assembly, just snippets and not full programs. You need to use win32 api of course, and on WM_MOUSEMOVE, use setpixel.
hrushij
hrushij #3
Sep 20, 2008 at 1:35 PM
It is better,if only assembly programing is used..
dheeraj_kumar
Sep 20, 2008 at 2:41 PM
How do you expect to write a windows program without using API at all? Go read up on WIN32 API, and then use it in your ASM proggies.
hrushij
hrushij #5
Sep 20, 2008 at 10:17 PM
Cant I do without it??!!
After drawing line I also want to implement a circle drawing!! :)

I am not going to wrote a windows program.
It is just DOS base program in which i am using mouse interface via DOS interrupt
INT 33h and Display subroutine INT 10H..!! :cool:
dheeraj_kumar
Sep 21, 2008 at 12:06 PM
Oh, I'm not familiar with using ASM for dos, sorry. I'm more used to windows. Do some research on int 33.