hi Marteen,

thx, for response. I get a code slice at 
http://www.mail-archive.com/sdcc-user@lists.sourceforge.net/msg00639.html
It is very ugly code, but maybe usable.

12/14/2010 11:57 PM keltezéssel, Maarten Brock írta:
> Hi,
>
> This is impossible. The sfr's are not indirectly
> accessable on almost all mcs51 compatible derivatives.
>
> Maarten
>
>>    Hi All,
>>
>> Is there any method to passing an sfr addres to a function?
>> And I need to store sfr address to a struct like this:
>>
>> typedef struct {
>>       uint8_t cursorX;
>>       uint8_t cursorY;
>>       unsigned char *buffer;
>>       uint8_t cols;
>>       uint8_t rows;
>>       uint8_t cursorState;
>>       __sfr dataPort;
>>       __sfr controlPort;
>> } Display;
>>
>> How can I do these?
>>

-- 
  thx,
----------------------------------
Zoltan Zidarics programmer
PTE-PMMFK H-7621 Pecs, Boszorkany u. 2. Hungary
E-Mail: za...@vili.pmmf.hu
----------------------------------
       


------------------------------------------------------------------------------
Lotusphere 2011
Register now for Lotusphere 2011 and learn how
to connect the dots, take your collaborative environment
to the next level, and enter the era of Social Business.
http://p.sf.net/sfu/lotusphere-d2d
_______________________________________________
Sdcc-user mailing list
Sdcc-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/sdcc-user

Reply via email to