Re: A89: recursion question


[Prev][Next][Index][Thread]

Re: A89: recursion question




TurboSoft@aol.com wrote:

> >       lea.l   string_variable(pc),a0
> >
> 
> does this always have to be a long word?:
> string_variable:
>    dc.(b,w,l) "string",0

No.  The .L in the LEA instruction only specifies that it is supposed
to access the address register as a longword.  It's really unnecessary,
since the assemble knows that a plain LEA refers to the register as a
longword.  You can use it to load the address of data of any size.
However, you should always declare *string* data with dc.b.


References: