gnupic: Questions about SDCC PIC code gen
Subject:
Re: Questions about SDCC PIC code gen
From:
matt ####@####.####
Date:
22 Oct 2002 02:31:55 -0000
Message-Id: <200210221227.39249.matt@dsp.com.au>
On Tue, 22 Oct 2002 11:30 am, Rick Mann wrote:
> Hi. I just built and am trying to learn to use SDCC to develop PIC code. I
> tried to write the following code:
>
> do {
> GIE = 0;
> } while (GIE != 0);
>
> to match the assembly I had written before.
>
> The generated assembly looks like this:
>
> ; GIE = 0;
> BCF (_GIE >> 3), (_GIE & 7)
> BSF _STATUS,5
>
>
> That doesn't seem to be what I was asking for. Is this due to the incomplete
> support for the PIC, or am I missing something else?
>
> TIA,
>
Rick,
what's code is generated before and after this little snippet??
Can you give us, say, the 5 preceding assembly instructions and the 5
following. Thanks.
Matt
DSP Systems (a division of SPC-Ardmona Limited). [MMII]