|
From: Karl B. <ka...@tu...> - 2002-03-16 16:06:51
|
Hi Lanius,
The instructions used to access SFR's
are embedded in the instruction, there is
no way to do it indirectly. So you cannot
make a construct that acts as a pointer to SFR.
You can do it with self-modifying code if you
are running from RAM, but it's not too often
you run from RAM with MCS51.
So probably a big case statement is your best
bet, or the equivalent optimized in asm.
Karl.
Lanius wrote:
>Hi,
>
>i want to display all *SFR-Register in a loop like:
>
>for(FSR=firstSFR;SFR<=lastFSR; FSR++)
>{
> x= *FSR;
> putChar(x);
>}
>
>how to?
>
>
>bis denn...
>Rainer Stamm
>
>
>_______________________________________________
>Sdcc-user mailing list
>Sdc...@li...
>https://lists.sourceforge.net/lists/listinfo/sdcc-user
>
>
|