delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2002/12/04/07:00:20

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: <askhpa$56$1@antares.lu.erisoft.se>
References: <200212020026 DOT gB20QDV26749 AT speedy DOT ludd DOT luth DOT se> <uulf7s7lb5c55b AT corp DOT supernews DOT com> <asf91n$kv1$1 AT antares DOT lu DOT erisoft DOT se> <uunnttaavscea0 AT corp DOT supernews DOT com> <ashpbs$848$1 AT antares DOT lu DOT erisoft DOT se> <uuqqog9hkv5k96 AT corp DOT supernews DOT com>
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

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019