#717 sfr problem

closed-rejected
nobody
5
2013-05-25
2004-02-27
Anonymous
No

the latest version 2.4.0 of sdcc does not handle the sfr
data type correctly (reserves a byte with .ds)

attached files
--------------------
test.c : a little test file (read comment)

I'm happy with sdcc. Great project!
Paddy

Discussion

  • Nobody/Anonymous

     
  • Maarten Brock

    Maarten Brock - 2004-04-28

    Logged In: YES
    user_id=888171

    Paddy,

    If you had read the documentation, you would have known
    that this is not the way to declare an sfr:
    sfr IOD = 0xB0;
    sfr OED = 0xB5;

    The proper way is to use:
    sfr at 0xB0 IOD;
    sfr at 0xB5 OED;

    Can someone close this non-bug?
    Maarten

     
  • Maarten Brock

    Maarten Brock - 2004-05-26
    • milestone: --> non_bugs
    • status: open --> closed-rejected
     

Log in to post a comment.