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