Re: [Sdcc-user] Using registers in C functions which are unused

2016-05-15 Thread php mania
Thanks for the reply On Sat, May 14, 2016 at 9:21 PM, Maarten Brock wrote: > Hello, > > The caller will normally save all registers before making the call and > restore after the callee returns. In other words: all registers are free > for you to use. > > > I know I can create a parameter in the

Re: [Sdcc-user] Using registers in C functions which are unused

2016-05-14 Thread Maarten Brock
Hello, The caller will normally save all registers before making the call and restore after the callee returns. In other words: all registers are free for you to use. > I know I can create a parameter in the C file itself and use it in > assembly(this is what sdcc generates), I want to know about

Re: [Sdcc-user] Using registers in C functions which are unused

2016-05-14 Thread php mania
I know I can create a parameter in the C file itself and use it in assembly(this is what sdcc generates), I want to know about the internal registers of the 8051. Can I use any? On Sat, May 14, 2016 at 8:03 PM, php mania wrote: > Hi, > > I am using the 8051 and am compiling using the SDCC. I hav