gnupic: SDCC pic16 - wrong code generated for SFR access


Previous by date: 2 Jan 2006 16:43:22 +0000 Re: [gnupic] Follow-up question to the thread about Ben's port of Brad's Lab2 to gpasm, Ben Dugan
Next by date: 2 Jan 2006 16:43:22 +0000 Re: [gnupic] Follow-up question to the thread about Ben's port of Brad's Lab2 to gpasm, Nicholas Robinson
Previous in thread: 2 Jan 2006 16:43:22 +0000 SDCC pic16 - wrong code generated for SFR access, Wojciech Zabołotny
Next in thread:

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

Previous by date: 2 Jan 2006 16:43:22 +0000 Re: [gnupic] Follow-up question to the thread about Ben's port of Brad's Lab2 to gpasm, Ben Dugan
Next by date: 2 Jan 2006 16:43:22 +0000 Re: [gnupic] Follow-up question to the thread about Ben's port of Brad's Lab2 to gpasm, Nicholas Robinson
Previous in thread: 2 Jan 2006 16:43:22 +0000 SDCC pic16 - wrong code generated for SFR access, Wojciech Zabołotny
Next in thread:


Powered by ezmlm-browse 0.20.