Re: [avr-gcc-list] In-line Assembler Code

2015-03-18 Thread Alistair Gadd
Hi Erik, I did in fact, eventually do exactly that. But I do like your tip on running xxx.S files through cpp and I'm going to use it. I just thought that because in-line assembly was being used by members of the community, it should be something I should have a handle on. I do have a better

Re: [avr-gcc-list] In-line Assembler Code

2015-03-18 Thread Erik Christiansen
On 07.03.15 17:07, Alistair Gadd wrote: > I'm used to using separate assembler files and I'm not a great boffin > on using in-line assembly, but I really think I need to get a collar > on it. Alistair, is there any reason for not using separate assembler files, as is your custom? As clock_prescale

Re: [avr-gcc-list] In-line Assembler Code

2015-03-07 Thread Georg-Johann Lay
Alistair Gadd schrieb: Hi Guys, I'm trying to use GCC-AVR to set up the clock prescale on an ATmega32U4, using the clock_prescale_set() function as outlined in the "avr/power.h " header file. If I call: clock_prescale_set(clock_div_1) or clock_prescale_set(0); where clock_prescale_se

Re: [avr-gcc-list] In-line Assembler Code

2015-03-07 Thread Jan Waclawek
>the assembly listing is fresh each time I try. Are you sure? Try to add static volatile uint8_t tmp2; tmp2 = __x; into clock_prescale_set() and check what happens with the asm listing. JW ___ AVR-GCC-list mailing list AVR-GCC-list@non