Three simple mouse routines in assembly language for DOS

Channel:
Subscribers:
5,450
Published on ● Video Link: https://www.youtube.com/watch?v=EPyPdk5KbjQ



Duration: 1:11:38
2,147 views
49


In this video, we see three simple assembly-language programs showing how to do basic mouse routines in DOS. In order, the things these programs do are:
- Enable a black-and-white mouse cursor
- Move a graphical element on the screen in response to mouse movement (which is what you'd need to do to make a color mouse cursor)
- Place something on the screen and react appropriately when the user clicks on it

EDIT: Thanks to kpanic23 for pointing out that dividing by 2 in binary is as easy as shifting all bits one position to the right, and so I could have divided CX by 2 with the single line "shr cx,1".







Tags:
mouse
computer
dos
dosbox
ms-dos
programming
asm
assembler
assembly language
a86
freedos