Article View: gnu.gcc.help
Article #49573Accessing the 1st MB with GNU assembler under DOS
From: Philipp Marx
Date: Fri, 07 Jan 1994 15:14
Date: Fri, 07 Jan 1994 15:14
28 lines
1686 bytes
1686 bytes
Hello, I'm running the GNU CC compiler on a IBM PC with MSDOS as OS and want to produce a program just for the same machine and OS. One of the modules of the program has to be written in assembler. So I use the gas provided with the C-compiler. Inside of the assembler module I have to get the printer ports out of the BIOS variables. The problem arises when I try to access the 1st MB of physical memory. I got a short notice from the documentation files about the fact that the 1st MB should be mapped through address 0xE0000000 . But if I try to load the ds register with 0xE000 I get a protection error of course. (I think it's because I need the right selector in protected mode and not the physical address.) But how could I do it ?? What's the right selector or address for accessing the 1st MB of physical memory? Or what other points have I to consider in that case. Thanks in advance if anyone can help me answering the question. My Email address is 100273.171@compuserve.com Karsten Rudolph
Technical Details
Message-ID:
<940107150421_100273.171_BHB45-1@CompuServe.COM>Path:
arc1-ca.pugleaf.net!gmd.de!xlink.net!sol.ctr.columbia.edu!math.ohio-state.edu!magnus.acs.ohio-state.edu!cis.ohio-state.edu!compuserve.COM!100273.171Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 11318c,da7a70515e66e494,start X-Google-Attributes: gid11318c,public X-Google-ArrivalTime: 1994-01-07 07:24:13 PST Path: arc1-ca.pugleaf.net!gmd.de!xlink.net!sol.ctr.columbia.edu!math.ohio-state.edu!magnus.acs.ohio-state.edu!cis.ohio-state.edu!compuserve.COM!100273.171 From: 100273.171@compuserve.COM (Philipp Marx) Newsgroups: gnu.gcc.help Subject: Accessing the 1st MB with GNU assembler under DOS Date: 7 Jan 1994 10:14:56 -0500 Organization: GNUs Not Usenet Lines: 29 Sender: daemon@cis.ohio-state.edu Distribution: gnu Message-ID: <940107150421_100273.171_BHB45-1@CompuServe.COM>