www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2001/07/04/02:59:15

Date: Wed, 4 Jul 2001 10:00:04 +0300 (IDT)
From: Eli Zaretskii <eliz AT is DOT elta DOT co DOT il>
X-Sender: eliz AT is
To: "Jacek K." <xos AT o2 DOT pl>
cc: djgpp AT delorie DOT com
Subject: Re: Accessing registers from C
In-Reply-To: <9htlpv$o5t$1@news.tpi.pl>
Message-ID: <Pine.SUN.3.91.1010704095943.3231S-100000@is>
MIME-Version: 1.0
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

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?

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019