Date: Wed, 4 Jul 2001 10:00:04 +0300 (IDT) From: Eli Zaretskii X-Sender: eliz AT is To: "Jacek K." cc: djgpp AT delorie DOT com Subject: Re: Accessing registers from C In-Reply-To: <9htlpv$o5t$1@news.tpi.pl> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Reply-To: djgpp AT delorie DOT com Errors-To: nobody AT delorie DOT com X-Mailing-List: djgpp AT delorie DOT com X-Unsubscribes-To: listserv AT delorie DOT com Precedence: bulk On Wed, 4 Jul 2001, Jacek K. wrote: > > On Sun, 1 Jul 2001, Jacek K. wrote: > > > > > Are there some instructions/macros to access CPU registers? > > > > Can you tell what do you need that for? DJGPP has several provisions > > in the library which normally make accessing the registers > > unnecessary. Section 17.8 of the FAQ gives a couple of examples. > > I need to call a procedure via call gate. Because arguments must be passed > "manualy", doing it by registers will be faster then by stack. To call a procedure via a call gate, you will probably need either inline assembly or an assembly wrapper anyway, right? So why did you specifically said you want something that isn't inline assembly?