X-Authentication-Warning: delorie.com: mail set sender to djgpp-bounces using -f From: Vedat Newsgroups: comp.os.msdos.djgpp Subject: How to access higher memory location using djgpp Date: Thu, 13 Oct 2011 06:40:45 -0700 (PDT) Organization: http://groups.google.com Lines: 15 Message-ID: <71ac715f-5198-465d-b685-a7901257ccd3@w23g2000vbx.googlegroups.com> NNTP-Posting-Host: 81.221.98.5 Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 X-Trace: posting.google.com 1318513245 15357 127.0.0.1 (13 Oct 2011 13:40:45 GMT) X-Complaints-To: groups-abuse AT google DOT com NNTP-Posting-Date: Thu, 13 Oct 2011 13:40:45 +0000 (UTC) Complaints-To: groups-abuse AT google DOT com Injection-Info: w23g2000vbx.googlegroups.com; posting-host=81.221.98.5; posting-account=miCmMQoAAABKZd7UIpCYuV9zFJxe0OkH User-Agent: G2/1.0 X-Google-Web-Client: true X-Google-Header-Order: HUALESNKRC X-HTTP-UserAgent: Mozilla/5.0 (Windows NT 5.1; rv:7.0.1) Gecko/20100101 Firefox/7.0.1,gzip(gfe) Bytes: 1548 To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com I want to access 0xFFA80000 using DOS 6.22 This is the previous code which worked for 0xD00000 ... How can I define the address so it won't crash. if (!__djgpp_nearptr_enable()) { printf(" Error : Can't Enable Nearptr!!!\n"); choice = 'X'; /* leave the loop */ } else { tm = (void *) (__djgpp_conventional_base + 0xD0000); sa = (TM_TYPE_SERVICE_AREA *) (__djgpp_conventional_base + 0xD3C00); }