| delorie.com/archives/browse.cgi | search |
| Message-ID: | <3757BC75.6F0DAD7F@swipnet.se> |
| From: | Anders David Skarin <hobbit AT swipnet DOT se> |
| X-Mailer: | Mozilla 4.5 [en] (Win98; I) |
| X-Accept-Language: | en |
| MIME-Version: | 1.0 |
| Newsgroups: | comp.os.msdos.djgpp |
| Subject: | accessing locked memory? |
| Lines: | 29 |
| Date: | Fri, 04 Jun 1999 13:45:58 +0200 |
| NNTP-Posting-Host: | 130.244.71.97 |
| X-Complaints-To: | news-abuse AT swip DOT net |
| X-Trace: | nntpserver.swip.net 928496857 130.244.71.97 (Fri, 04 Jun 1999 13:47:37 MET DST) |
| NNTP-Posting-Date: | Fri, 04 Jun 1999 13:47:37 MET DST |
| Organization: | A Customer of Tele2 |
| To: | djgpp AT delorie DOT com |
| DJ-Gateway: | from newsgroup comp.os.msdos.djgpp |
| Reply-To: | djgpp AT delorie DOT com |
Hello again my dear newsgroup...
I might actually be able to crack this one in the next couple off
minutes,
but since I've gotten really fast respnonse before I will post this one.
The problem seems to be accessing locked memory, or I have missed
something really trivial. I wrote a mouse handler according to the FAQ
and it works perfectly. The only problem is that I can't get the correct
values from my MOUSE struct. In the mouse handler function (int) it
works as it should, but i created i MOUSE_getX() function to read the
X pos outside the handler. It looks like this:
word MOUSE_getX(void)
{
__asm__("cli");
return (mouse.x);
__asm__("sti");
}
but it wont return nothing but zero.. ...is this because the mouse
struct
is locked, and can only be accessed by the handler?
Question2: Does locked memory go inte conventional memory?
| webmaster | delorie software privacy |
| Copyright © 2019 by DJ Delorie | Updated Jul 2019 |