Author Topic: Mouse  (Read 5843 times)

Manos

  • Guest
Mouse
« on: May 27, 2012, 08:26:32 PM »
This is an example of Mouse in video mode 320x200x256 colors
for the standard VGA video modes.

Press left button of mouse and move the mouse.
To exit, first press right button of mouse
and then press space key of keyboard.

Manos.

FORTRANS

  • Member
  • ****
  • Posts: 945
Re: Mouse
« Reply #1 on: May 28, 2012, 01:55:17 AM »
Hi,

   Not bad.  I would change your   JNE   LOOP1  to JNE     LOOP2,
only as that does not lock up the program.  I would also reset
the video mode to 3 (text) before exiting.

Cheers,

Steve N.

MichaelW

  • Global Moderator
  • Member
  • *****
  • Posts: 1209
Re: Mouse
« Reply #2 on: May 28, 2012, 03:02:59 AM »
And if this code is supposed to work under DOS, I think the code should display an error message if the reset mouse function fails, because this probably indicates that there is no mouse driver loaded.
Well Microsoft, here’s another nice mess you’ve gotten us into.

Manos

  • Guest
Re: Mouse
« Reply #3 on: May 28, 2012, 03:46:57 AM »
This is a piece of code to see how mouse works, not a program and it is for Windows 95 and later,
not for plain DOS.
If you are interesting to see code out of DOS, using ports, I can upload some code with mouse driver
of my simple OS, but it is writen in FASM.
Maybe, later I 'll upload code using JWASM.

Manos.

vitsoft

  • Regular Member
  • *
  • Posts: 3
    • vit$oft freeware
Re: Mouse
« Reply #4 on: July 01, 2012, 11:11:50 PM »
Twelve year ago I wrote an utility OPIN.com which can display the values of DOS registers as returned from mouse interrupt 0x33 in real time.  It works in DOS and Windows 32bit.
Download here.

Screenshot:



MichaelTripi68

  • Guest
Re: Mouse
« Reply #5 on: January 02, 2013, 02:24:51 PM »
Twelve year ago I wrote an utility OPIN.com which can display the values of DOS registers as returned from mouse interrupt 0x33 in real time.  It works in DOS and Windows 32bit.
Download here.

Screenshot:


Can you provide source code for your OPIN.COM mouse program?  I am playing around with some DOS 16-bit programming.  Thanks in advance.
 
Mike

dedndave

  • Member
  • *****
  • Posts: 8734
  • Still using Abacus 2.0
    • DednDave
Re: Mouse
« Reply #6 on: January 02, 2013, 02:27:18 PM »
if you want to play with 16-bit code, you will want Ralf Brown's Interrupt List
http://www.cs.cmu.edu/~ralf/

the mouse INT 33h services are easy to learn   :P

MichaelTripi68

  • Guest
Re: Mouse
« Reply #7 on: January 02, 2013, 02:51:16 PM »
if you want to play with 16-bit code, you will want Ralf Brown's Interrupt List
http://www.cs.cmu.edu/~ralf/

the mouse INT 33h services are easy to learn   :P

Thanks!!  Will be a great reference for me..

vitsoft

  • Regular Member
  • *
  • Posts: 3
    • vit$oft freeware
Re: Mouse
« Reply #8 on: January 03, 2013, 08:40:46 AM »
Can you provide source code for your OPIN.COM mouse program?  I am playing around with some DOS 16-bit programming.  Thanks in advance.
Mike

OK, download it again, it is bundled with TASM source now. You will also need some macrolibraries to compile, available at http://vitsoft.info/vsasmlib.zip. Enjoy  :t

Rockphorr

  • Member
  • **
  • Posts: 50
Re: Mouse
« Reply #9 on: January 03, 2013, 09:11:52 AM »
Can you provide source code for your OPIN.COM mouse program?  I am playing around with some DOS 16-bit programming.  Thanks in advance.
Mike

OK, download it again, it is bundled with TASM source now. You will also need some macrolibraries to compile, available at http://vitsoft.info/vsasmlib.zip. Enjoy  :t

Are you dos-toys developer too ??

Today at Moscow day time i will post my new draft-dos-text-editor
May be it will be intresting to you

vitsoft

  • Regular Member
  • *
  • Posts: 3
    • vit$oft freeware
Re: Mouse
« Reply #10 on: January 03, 2013, 09:15:34 AM »
Nor dos-anything developer neither dos user any more.  But its nice to know that such people still exist.

Rockphorr

  • Member
  • **
  • Posts: 50
Re: Mouse
« Reply #11 on: January 03, 2013, 09:19:28 AM »
Nor dos-anything developer neither dos user any more.  But its nice to know that such people still exist.

Yes it is not seriously, but try some ideas in dos-emuls are cool.
my toy here http://masm32.com/board/index.php?topic=162.0

MichaelTripi68

  • Guest
Re: Mouse
« Reply #12 on: January 09, 2013, 01:28:36 AM »
Thanks guys....vit, rock, and dave..for all info....I will check out the source provided.  I want to be able to code my own mouse routines into my project so I will use as reference if its ok with you Mr. "Vitsoft"   :bgrin: