From: "A. Sinan Unur" Newsgroups: comp.os.msdos.djgpp Subject: Re: addressing question Date: 13 Sep 2001 13:58:45 GMT Organization: Cornell University Lines: 28 Sender: asu1 AT cornell DOT invalid (on slip-32-102-40-112.ny.us.prserv.net) Message-ID: References: <9nqdp9$22n2$1 AT pandora DOT alkar DOT net> NNTP-Posting-Host: slip-32-102-40-112.ny.us.prserv.net X-Trace: news01.cit.cornell.edu 1000389525 11356 32.102.40.112 (13 Sep 2001 13:58:45 GMT) X-Complaints-To: usenet AT news01 DOT cit DOT cornell DOT edu NNTP-Posting-Date: 13 Sep 2001 13:58:45 GMT User-Agent: Xnews/4.06.22 To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com "dima 3141596" wrote in news:9nqdp9$22n2$1 AT pandora DOT alkar DOT net: > Ok, I have GDT with 3 valid entries: code segment, data segment and > data segment pointed to video RAM (0x0b8000). > Than I switch to PM and load CS <- entry 1, DS <- entry 2, ES <- > entry 3. > After it I want output any information to the screen: mov ES:[...], x > in assembler :). > How can I make it in the DJGPP ? > In the Turbo C I can do it : char far* scr = MK_FP(segment, > offset); > then any instruction like it: *scr = '1'; will generate asm code > mov ax,segment > mov es,ax > mov es:[offset] , '1' ------> here ES !!! > > but djgpp has not far* !!! try info libc alpha dosmemput Sinan. -- -------------------------------- A. Sinan Unur http://www.unur.com/