[avr-gcc-list] Register conventions - __mulsi3

2006-09-27 Thread Ram Kumar Rengaswamy
Hi, What are the register conventions followed by the routines __mulsi3, __udivmodhi4 etc. i.e. What are the call used registers, call saved registers etc. ? Thanks, -Ram ___ AVR-GCC-list mailing list AVR-GCC-list@nongnu.org

[avr-gcc-list] Using register r0 and r1

2006-09-12 Thread Ram Kumar Rengaswamy
Hi, I am using registers r0 and r1 in a custom assembly routine within a large C application. I save and restore r0 and r1 at the beginning and end of my routine. I have a lot of interrupts in my application. Do the interrupts save and restore r0 and r1 as well (if they use them ?).

Re: [avr-gcc-list] Fixed Registers -ffixed

2006-08-22 Thread Ram Kumar Rengaswamy
reloading `asm' Isn't there any way to reserve a pair of registers in AVR-GCC ? Thanks, -Ram On Aug 18, 2006, at 11:24 PM, Joerg Wunsch wrote: Ram Kumar Rengaswamy [EMAIL PROTECTED] wrote: When I try to compile my application with the option -ffixed-r2 and -ffixed-r3, I get the following error

[avr-gcc-list] Fixed Registers -ffixed

2006-08-18 Thread Ram Kumar Rengaswamy
Hi, I need to prevent the C code from using a pair of registers that I wish to use in an assembly routine. When I try to compile my application with the option -ffixed-r2 and - ffixed-r3, I get the following error: error: can't find a register in class `BASE_POINTER_REGS' while

Re: [avr-gcc-list] Asm Operator for Address Negation

2006-08-10 Thread Ram Kumar Rengaswamy
Christiansen wrote: On Wed, Aug 09, 2006 at 05:04:05PM -0700, Ram Kumar Rengaswamy wrote: SUBI r30, lo8(-permsTable) SBCI r31, hi8(-permsTable) However, I am getting a syntax error with the above operation. Ram, This listing shows that the given syntax can assemble OK. 16

Re: [avr-gcc-list] Asm Operator for Address Negation

2006-08-10 Thread Ram Kumar Rengaswamy
Hi Paulo, The following suggestion worked :-) You can always compile a simple C program into assembly and modify the result to your needs instead of writing it from scratch... I hope this helps, For reference, the correct syntax is: #--

[avr-gcc-list] Asm Operator for Address Negation

2006-08-09 Thread Ram Kumar Rengaswamy
Hi, I have a large C application in which I would like to write one of the routines in assembly to improve performance. uint8_t permsTable[128]; // This is a global variable. # The following is the assembly routine. # The offset into permsTable is present in the register pair r30:r31 #

[avr-gcc-list] Binary Parser

2006-01-30 Thread Ram Kumar Rengaswamy
Hi, For my research project, I need to build a tool to parse AVR binaries and perform some modifications to them. Can anyone recommend me a good binary parser that I can use as a starting point to build my tool. Thanks, -Ram ___