From: "Alexei A. Frounze" Newsgroups: comp.os.msdos.djgpp Subject: Re: Inline ASM Date: Fri, 24 Mar 2000 22:41:22 +0300 Organization: MTU-Intel ISP Lines: 23 Message-ID: <38DBC4E2.405A0F6C@mtu-net.ru> References: <38daf59d AT news DOT integrityonline DOT com> <38DAFAA7 DOT CC352387 AT mtu-net DOT ru> <8bg4on$4kibp$2 AT fu-berlin DOT de> NNTP-Posting-Host: ppp96-180.dialup.mtu-net.ru Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Trace: gavrilo.mtu.ru 953927672 64712 212.188.96.180 (24 Mar 2000 19:54:32 GMT) X-Complaints-To: usenet-abuse AT mtu DOT ru NNTP-Posting-Date: 24 Mar 2000 19:54:32 GMT X-Mailer: Mozilla 4.61 [en] (Win95; I) X-Accept-Language: en,ru To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com Yes, I tried. I have *really* working program. VGAsel is selector coresponding to allocted descriptor that points to the realmode 0A000h segment. IMO there is no lobbering. But sure, I should specify used registers. Dieter Buerssner wrote: > Alexei, have you tried this? It can't work in general, because > your inline assembly clobbers registers eax and edi, without > giving the compiler a chance to know this. I.e. when declaring > > unsigned short VGA_sel; > > and commenting everything besides the inline assembly, > the compiler w'ont generate code that saves edi accross the function > call... -- Alexei A. Frounze