Re: Problem with pic16l_setled

2005-07-28 Thread Uwe Doering
Rink Springer wrote: * Ludvig Strigeus ([EMAIL PROTECTED]) wrote: I see this code: +ENTRY(pic16l_setled) + push%ebp + mov %esp,%ebp + + movl0x8(%ebp),%ebx + orl $0x800,%ebx + callpic16l_ledhlp + movl$0x701,%ebx + callpic16l_

RE: Problem with pic16l_setled

2005-07-27 Thread Norbert Koch
> You see, in C, I call the function like this (for example): > > void pic16l_setled(unsigned int val); > pic16l_setled (0x1234); > > And it gets assembled to: > > pushl $0x1234 > callpic16l_setled > > But it should be assembled to: > > pushl $0x1234 >

Re: Problem with pic16l_setled

2005-07-27 Thread Rink Springer
Hi Ludvig, * Ludvig Strigeus ([EMAIL PROTECTED]) wrote: > Hi! > > I see this code: > > +ENTRY(pic16l_setled) > + push%ebp > + mov %esp,%ebp > + > + movl0x8(%ebp),%ebx > + orl $0x800,%ebx > + callpic16l_ledhlp > + movl$0x701,%ebx > + callpic