delorie.com/archives/browse.cgi | search |
From: | "A. Sinan Unur" <asu1 AT cornell DOT edu> |
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: | <Xns911B658324B68ASINANUNUR@132.236.56.8> |
References: | <Pine DOT SUN DOT 3 DOT 91 DOT 1010913112105 DOT 354C-100000 AT is> <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" <dima AT rts-ukraine DOT com> 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/
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |