gnupic: SDCC pic16 - wrong code generated for SFR access
Subject:
Re: SDCC pic16 - wrong code generated for SFR access
From:
wzab ####@####.####
Date:
2 Jan 2006 16:43:22 +0000
Message-Id: <43B957B2.3060300@ise.pw.edu.pl>
Wojciech Zabołotny napisał(a):
>Hi All,
>
>I was working with the USB firmware using the SDCC compiler, and I've
>found the strange effect.
>The code generated for assignment of constant to the SFR is incorrect.
>E.g. for "UCON=7", I get the following assembly code (i used the
>modified "blinkled.c" to show the problem):
>
> ; .line 50;
>blinkled.c UCON=7;
>00019e 0e07 movlw 0x7 MOVLW 0x07
>0001a0 6f6d movwf 0x6d, 0x1 MOVWF _UCON
>
>
[...]
OK. The problem disappeared, after I've upgraded my gpuitls package from
CVS.
Sorry for confusion,
Wojtek Zabolotny