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_
> 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
>
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
3 matches
Mail list logo