From: Damian Yerrick Newsgroups: comp.os.msdos.djgpp Subject: Re: VBE question Organization: Pin Eight Software http://pineight.8m.com/ Message-ID: References: <28c76e20 DOT c6fa7a9c AT usw-ex0102-013 DOT remarq DOT com> X-Newsreader: Forte Agent 1.7/32.534 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Lines: 40 X-Trace: +r2abhymbl8R0tbT2Sf4D8UKtw64JWe2NBXewsDodcpiYtWeEQRIEI7iUbm/Zsm8WEQ0KUYQOGPd!n2ayEpRXkI0u3qW5h9WAIDjSn5Rao9hvR8Djzx2eyRVN32FE4DRtOo7AD/jroZNS05XlFHAxMiYm!xRZowBo= X-Complaints-To: abuse AT gte DOT net X-Abuse-Info: Please be sure to forward a copy of ALL headers X-Abuse-Info: Otherwise we will be unable to process your complaint properly NNTP-Posting-Date: Mon, 10 Apr 2000 03:36:52 GMT Distribution: world Date: Mon, 10 Apr 2000 03:36:52 GMT To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com On Sun, 9 Apr 2000 08:36:03 +0200 (IST), Eli Zaretskii wrote: >On Fri, 7 Apr 2000, batchex wrote: > >> Umm, I just looking for a compromise, between memory protection >> and near pointers. Because I'll do much ASM in the project, >> using far pointers can cause much pain for me, all that pushing >> & popping segment pointers. > >Sorry, I don't understand: what pushing and popping? All you need to >access a far pointer in assembly is to load FS with the _dos_ds >selector (once) and then use the fs: segment override. What are the names of those segments? SS = stack CS = code DS = data ES = extra (DS = ES = SS references the same memory as CS, right?) FS = farptr GS = ? >> And I think I left that behind when moving from real mode to >> protected mode programming.... > >You can leave that behind if you access the ``normal'' memory mapped >into your address space. Accessing devices mapped into specific >absolute addresses is not something ``normal'' programs do. If you leave far memory access to libraries (Allegro, etc.), your program can remain a ``normal'' program, right? -- Damian Yerrick "I refuse to listen to those who refuse to listen to reason." See the whole sig: http://www.rose-hulman.edu/~yerricde/sig.html This is McAfee VirusScan. Add these two lines to your signature to prevent the spread of signature viruses. http://www.mcafee.com/