delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1998/08/23/19:54:22

Message-ID: <35E0AA92.640C1380@unb.ca>
Date: Sun, 23 Aug 1998 20:49:39 -0300
From: Endlisnis <s257m AT unb DOT ca>
MIME-Version: 1.0
Newsgroups: comp.os.msdos.djgpp
To: george DOT foot AT merton DOT oxford DOT ac DOT uk
CC: djgpp AT delorie DOT com
Subject: Re: ASM
References: <E0zAhyH-0007pt-00 AT sable DOT ox DOT ac DOT uk>

George Foot wrote:

> On 23 Aug 98 at 11:39, Endlisnis wrote:
> >     I was trying to make an 'RGB' function that took 3 byte's as parameters and
> > returned a long.  My idea was to do something like:
> >     That would be faster than loading R,G,B into registers then combining them into
> > one register.
>
> Hmm.  Write your own function then; you can then access the
> parameters directly, on the stack.

    But, wouldn't it be easier, if you could access the parameters of a function as their
names (in ASM) (with an underscore if required) rather than having to use the stack?
Would that interfere with anything or be hard to do?

--
     (\/) Endlisnis (\/)
          s257m AT unb DOT ca
          Endlisnis AT GeoCities DOT com
          Endlis AT nbnet DOT nb DOT ca


- Raw text -


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