Steve, YOU ARE LOADING R3 !!! Not a stack pointer which is r1! That's why this barks on 'mov #0xa00, R3' :)
Concerning sections (__ctors_end): It is possible to get rid of it with -r linker oprion. However you'll have to edit a linker sctipt a bit. cheers, ~d On Wednesday 26 November 2003 18:09, Steve Underwood wrote: > Hi, > > If I assemble the attached .S file with > > msp430-gcc -g -O2 -mmcu=msp430x449 -D_GNU_ASSEMBLER_ -nostartfiles > -nostandartlibs xxx.S > > and dump the resulting file with: > > msp430-objdump -DS a.out > > I get: > > > a.out: file format elf32-msp430 > > Disassembly of section .text: > > 00001100 <__ctors_end>: > 1100: 33 40 .word 0x4033; ???? > 1102: 00 0a .word 0x0a00; ???? > > 00001104 <StopWDT>: > 1104: b2 40 80 5a mov #23168, &0x0120 ;#0x5a80 > 1108: 20 01 > > 0000110a <SetupP1>: > 110a: e2 d3 32 00 bis.b #2, &0x0032 ;r3 As==10 > > 0000110e <Mainloop>: > 110e: e2 e3 31 00 xor.b #2, &0x0031 ;r3 As==10 > > 00001112 <Wait>: > 1112: 3f 40 50 c3 mov #-15536,r15 ;#0xc350 > > 00001116 <L1>: > 1116: 1f 83 dec r15 ; > 1118: fe 23 jnz $-2 ;abs 0x1116 > 111a: f9 3f jmp $-12 ;abs 0x110e > Disassembly of section .data: > > Why isn't the first instruction disassembled properly? > > Regards, > Steve -- /***************************************************************** ("`-''-/").___..--''"`-._ (\ Dimmy the Wild UA1ACZ `6_ 6 ) `-. ( ).`-.__.`) State Polytechnical Univ. (_Y_.)' ._ ) `._ `. ``-..-' Radio-Physics Departament _..`--'_..-_/ /--'_.' ,' Saint Petersburg, Russia (il),-'' (li),' ((!.-' +7 (812) 5403923, 5585314 *****************************************************************/