A89: Re: Re: TIGCCLIB 2.0 released!


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

A89: Re: Re: TIGCCLIB 2.0 released!




> Hi!
>
> >> asm("lea "_str_(LCD_MEM)",%a0")
> >> will expand to
> >> asm("lea 0x4C00,%a0")
> >
> > Ahh, that's right.  Just curious, is it the same in C++?  The Codewarrior
> > we run in my Computer Science class (an old Mac version) doesn't seem to
> > be able to handle string concatenation like that, among some other odd
> > bugs.
>
> I forgot that a better method exist too:
>
> asm("lea %0,%%a0"::"g"(LCD_MEM))

Does this generate an immediate value, or does it load 0x4c00 into a temporary
register first?

 / Niklas Brunlid
Check out Prosit for the TI-89 / TI-92+ at http://prosit.ticalc.org
Random PQF Quote follows:

"?" he said.
        -- (Terry Pratchett & Neil Gaiman, Good Omens)





Follow-Ups: References: