gnupic@linuxhacker.org
gnupic@linuxhacker.org
> >
> > ; PORTB=(PORTB&0xf0)|(0x02);
> > MOVLW 0xf0
> > ANDWF _PORTB,W
> > MOVLW 0x02
> > MOVWF _PORTB
> >
> > Seems to me the second MOVLW should have been a IORLW.
> > I was kind of thinking of having a look at the SDCC
> > code myself, but I don't really know where to start...
>
> Yep, that's a bug.
>
Here's a patch:
http://area26.no-ip.org/download/misc/sdcc-orfix.patch
I't seemed like the right thing to do, and works on my
specific code but comes with no warranty beyond that.
/cyr
--------------------------------------------------
cyrano(at)algonet(dot)se | http://area26.no-ip.org
--------------------------------------------------
gnupic@linuxhacker.org