[A83] Re: From C to asm
[Prev][Next][Index][Thread]
[A83] Re: From C to asm
D'oh!!!
>From: ComAsYuAre@aol.com
>Reply-To: assembly-83@lists.ticalc.org
>To: <assembly-83@lists.ticalc.org>
>Subject: [A83] Re: From C to asm
>Date: Fri, 13 Jul 2001 13:26:47 EDT
>
>
>Actually that would be
> ld hl,in
> ld de,out
> ld bc,numbytes
> ldir
>
>ldir copies from hl to de :-)
>
>
>In a message dated Fri, 13 Jul 2001 1:18:15 PM Eastern Daylight Time, "Dan
>Weiss" <dwedit@hotmail.com> writes:
>
> >
> > ld hl,out
> > ld de,in
> > ld bc,[number of elements*bytes per element]
> > ldir
> >
> >
> > >From: "Robert M. Proie Jr." <playnogamz@nls.net>
> > >Reply-To: assembly-83@lists.ticalc.org
> > >To: <assembly-83@lists.ticalc.org>
> > >Subject: [A83] From C to asm
> > >Date: Fri, 13 Jul 2001 11:06:55 -0400
> > >
> > >
> > >Hi:
> > >
> > > Lets say I have a senario like this.
> > >Two type vec3_t.
> > >typedef float vec_t;
> > >typedef vec_t vec3_t[3];
> > >vec3_t IN
> > >&
> > >vec3_t OUT
> > >
> > >IN[0] = 1
> > >IN[1] = 2
> > >IN[2] = 3
> > >OUT[0] = 4
> > >OUT[1] = 5
> > >OUT[2] = 6
> > >
> > >(Don't get hung up on the values, I just made them up)
> > >Now I also have a function:
> > >
> > >void Copy (vec3_t in, vec3_t out)
> > >{
> > > out[0] = in[0];
> > > out[1] = in[1];
> > > out[2] = in[2];
> > >}
> > >
> > >Now, here is my question. In ASM, how are values of those two types
> > >stored?
> > >Like, when you come to the function the values are stored in registers
>or
> > >on
> > >the stack right? So, how would these values be stored?
> > >
> > >
> > >
> >
> > _________________________________________________________________
> > Get your FREE download of MSN Explorer at http://explorer.msn.com
>
>
>
>
_________________________________________________________________
Get your FREE download of MSN Explorer at http://explorer.msn.com