From: "John M. Aldrich" Newsgroups: comp.os.msdos.djgpp Subject: Re: _AX Undeclared? Date: Tue, 24 Mar 1998 19:00:31 -0500 Organization: Two pounds of chaos and a pinch of salt. Lines: 30 Message-ID: <3518491F.6724@cs.com> References: <3517F7E0 DOT 86F5993 AT hol DOT gr> NNTP-Posting-Host: ppp234.cs.com Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Precedence: bulk maverick wrote: > > void setMCGA() { > _AX = 0x0013; > geninterrupt(0x10); > } and all I get is an error :[ '_AX' undeclared ( first use this > function)] > Uh? Is this got to do something with pmode gcc operates in? How it can > be done then? > You see, I just switched to C/C++. (Was coding in asm and I want to > combine the two of them.) Any help and/or web-reading material will be > appreciated. > thx Read chapters 10, 17, and 18 of the DJGPP Frequently Asked Questions list, available from SimTel as v2/faq210b.zip or online at http://www.delorie.com/djgpp/v2faq/. Specifically, chapter 17.8 tells you what to do with those Borland-style pseudoregisters. FYI, that code is written for Borland-style real mode compilers, and will probably require extensive modifications to work with DJGPP! -- --------------------------------------------------------------------- | John M. Aldrich |"A competent and self-confident person| | aka Fighteer I | is incapable of jealousy in anything.| | mailto:fighteer AT cs DOT com | Jealousy is invariably a symptom of | | http://www.cs.com/fighteer | neurotic insecurity." - Lazarus Long| ---------------------------------------------------------------------