Message-ID: <35E0AA92.640C1380@unb.ca> Date: Sun, 23 Aug 1998 20:49:39 -0300 From: Endlisnis 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: Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Precedence: bulk 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