Fellows, No more changes are planned to binutils. I will port msp430 stuff to newish version of binutils soon.
Concerning $labels: 1. A "label" is written as a symbol immediately followed by a colon `:'. The symbol then represents the current value of the active location counter, and is, for example, a suitable instruction operand. You are warned if you use the same symbol to represent two different locations: the first definition overrides any other definitions. 2. '$' sign is reserved for the 'current PC location', same as '.' . So, jmp $+20 means PC=PC+20 (jmp +20 means skip next 20 bytes PC=PC+22) $label is not allowed in msp430-as 3. labels are prepended by '.' to make them 'symbolized' at current location(convenient for elf table generator and debugger. No difference for end-user) 4. Symbols started from 'L' are local ones and cannot be seen in an object dump (but written to the elf symbol table though) 5. Symbols 1 to 9 never being used by sane people :) 6. One cannot use #define in 'as' . You have to use C prepocessor. File name shouls have .S (note upper case) suffix. And one more: I am not familiar with PIC architecture, but looking briefly at it I think this will be difficult to port linear memory model of msp430 to PIC and vice versa but I'm not sure. ~d On Thu, 29 Aug 2002 02:40:15 -0300 "Garst R. Reese" <[email protected]> wrote: > msp430-as does not like .set, but works OK with = > I gather that I can also use C #define's for the same affect. > On another plane, browsing the i386 as docs, I found that AT&T gas used > dest,source instead of source,dest. This is the problem I have in > converting PIC code to msp430 code. PIC uses dest,src. Most of the rest > I can do with S/R. It would be really convient to have a dest,src option > for msp430 if it is some simple thing. > Cheers, > Garst > > > ------------------------------------------------------- > This sf.net email is sponsored by:ThinkGeek > Welcome to geek heaven. > http://thinkgeek.com/sf > _______________________________________________ > Mspgcc-users mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/mspgcc-users > /******************************************************************** ("`-''-/").___..--''"`-._ (\ Dimmy the Wild UA1ACZ `6_ 6 ) `-. ( ).`-.__.`) Enterprise Information Sys (_Y_.)' ._ ) `._ `. ``-..-' Nevsky prospekt, 20 / 44 _..`--'_..-_/ /--'_.' ,' Saint Petersburg, Russia (il),-'' (li),' ((!.-' +7 (812) 3468202, 5585314 ********************************************************************/
