#56 Alternative to absolute addressing

closed
nobody
None
5
2006-12-19
2006-12-04
No

I want to make absolute addressing as follow,

xdata unsigned char BaseAddress;

void SetBaseAddress (unsigned int BaseAddr)
{
BaseAddress = BaseAddr;
}

so that BaseAddress has absolute address of BaseAddr,
could i do it in SDCC ?

Discussion

  • Maarten Brock

    Maarten Brock - 2006-12-04

    Logged In: YES
    user_id=888171
    Originator: NO

    Anton,

    I don't see the point. Pointers were invented for this in C.

    unsigned char xdata *BaseAddress;

    void SetBaseAddress(unsigned int BaseAddr)
    {
    BaseAddress = (unsigned char xdata *)BaseAddr;
    }

    Maarten

     
  • Maarten Brock

    Maarten Brock - 2006-12-04
    • status: open --> pending
     
  • SourceForge Robot

    • status: pending --> closed
     
  • SourceForge Robot

    Logged In: YES
    user_id=1312539
    Originator: NO

    This Tracker item was closed automatically by the system. It was
    previously set to a Pending status, and the original submitter
    did not respond within 14 days (the time period specified by
    the administrator of this Tracker).

     

Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks