home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #3 / NN_1993_3.iso / spool / rec / games / programm / 5537 < prev    next >
Encoding:
Internet Message Format  |  1993-01-28  |  1.1 KB

  1. From: Brian.Ostergren@njackn.uucp (Brian Ostergren)
  2. Sender: FredGate@njackn.uucp
  3. Path: sparky!uunet!charon.amdahl.com!pacbell.com!ames!agate!spool.mu.edu!uwm.edu!daffy!uwvax!gorgon!fullfeed!njackn!FredGate
  4. Newsgroups: rec.games.programmer
  5. Subject: int 33h (mouse) services question
  6. Message-ID: <728017105.0@njackn.njackn.uucp>
  7. Date: 25 Jan 93  20:04:30 EST
  8. Lines: 14
  9.  
  10.  CDS>    Is there a service in int 33h for programming a new bitmap into
  11.  CDS> the mouse cursor?  Or, can someone direct me to a place where I
  12.  CDS> can grab the int33h list.  Thanx in advance for any help!
  13.  
  14.         Yes there is. You must have an array[0..31] of word to store the bitmap in. The cursor is 16x16 so, the first 16 words show the what should appear white and the second 16 words show where the background should show through. Or it could possibly be the other way around, I haven't used it for a while so I don't remember. The registers should be set the following way:
  15.  AX:=9;
  16.  BX:=hsx; {hsx being the x-coordinate of the "hot-spot"}
  17.  CX:=hsy; {same as hsx except for y}
  18.  DX:=ofs(cursorarray[0]);
  19.  ES:=seg(cursorarray[0]);
  20. And then you must call int 33h.
  21.  
  22.  
  23.  * Origin: NineJackNine (1:121/99)
  24.