From: eplmst AT lu DOT erisoft DOT se (Martin Stromberg) Newsgroups: comp.os.msdos.djgpp Subject: Re: AT&T inline asm in DJGPP... Date: 4 Dec 2002 09:27:06 GMT Organization: Ericsson Erisoft AB, Sweden Lines: 26 Message-ID: References: <200212020026 DOT gB20QDV26749 AT speedy DOT ludd DOT luth DOT se> NNTP-Posting-Host: lws256.lu.erisoft.se X-Newsreader: TIN [version 1.2 PL2] To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com lewi9908 (lewi9908 AT ghc DOT ctc DOT edu) wrote: : > So far this is an ordinary DJGPP program, right? Not any kernel that : > some bootloader loads, switches to PM and jump to, right? : Everything up to the start of main() works like a normal kernel starting but : then I just write some simple text to screen and exit but Windows/DOS/Linux : Kernels do a lot more. So I have a bootsector, a loader and a C program that : can be loaded in the same way any OS starts it kernel. Ok. So it _is_ a kernel. And I thought you used C++ and that is what it looked like in your posted code modules name (.cpp). C++ isn't C. : > If so, then why do you think graphic memory is at DS:0xb8000? Read the : > FAQ regarding that. : Which FAQ? Also DS is loaded in loader with a Pmode descriptor that has a I was thinking of the DJGPP FAQ. : base of 0x0000 and in Pmode adding 0xb8000 the correct place to fine the : video mem. Yes, it should be if that is true. Right, MartinS