home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #1 / NN_1993_1.iso / spool / alt / hackers / 1885 < prev    next >
Encoding:
Text File  |  1993-01-11  |  1.6 KB  |  36 lines

  1. Newsgroups: alt.hackers
  2. Path: sparky!uunet!cs.utexas.edu!uwm.edu!ux1.cso.uiuc.edu!bradley.bradley.edu!cs1!gilligan
  3. From: gilligan@cs1.bradley.edu (Edward Henigin)
  4. Subject: Mines for dos
  5. Message-ID: <gilligan.726744685@cs1.bradley.edu>
  6. Summary: games
  7. Sender: news@bradley.bradley.edu
  8. Organization: Bradley University
  9. Date: 11 Jan 93 09:31:25 GMT
  10. Approved: don't you wish . . . . 
  11. Lines: 23
  12.  
  13. hack: Writeing (or cloneing, I should say) That Cool Windows Game
  14. 'MineSweeper' to run under dos . . . boy, you know, I had to learn
  15. a lot of Pascal to do the damn thing.  I should get college credit for
  16. that!!!  I've done more work on that in the last two weeks than on
  17. all of my CS homework combined . . . 
  18.  
  19. okay, okay . . real ObHack
  20. Getting a your mouse handler to return pixel coordinates in a text mode:
  21. Set your screen to the text mode.  Poke the byte value 12h (for VGA
  22. 640x480x16) into [$0040:$0047].  Initialize the mouse (ah=00,int 33h)
  23. the mouse handler reads the mem value at [$0040:$0047], then poke
  24. back your text mode value into that address.  Presto, the mouse handler
  25. returns pixel coordinates in a text mode.  Of course, the mouse cursor
  26. is screwed . . . 
  27. (sorry, I didn't figure that out myself, but I still think it's rad.
  28.  Haven't you ever wondered how Norton got a graphics cursor in a text mode?)
  29.  
  30. ed
  31. --
  32. |ed -- gilligan@camelot.bradley.edu | If man is 5, then the devil is 6.      |
  33. |   -- gilligan@cs1.bradley.edu     | And if the devil is 6, then god is 7.  |
  34. |    (only until Jan 30)            | This monkey's gone to heaven.          |
  35. |  Are you deviant?  Probably.      |      -- Pixies                         |
  36.