On Jun 17, 2014, at 10:59 PM, [email protected] wrote:

> 
>       uint8_t *eeprom = (void *)0xffffe;

this seems to work: 

unsigned int dev_id() {
        unsigned char dev_id_low, dev_id_high;
        
    TBLPTRU = __DEVID1 >> 16;
    TBLPTRH = __DEVID1 >> 8;
    TBLPTRL = __DEVID1;
    __asm
                tblrd*+
        __endasm;
    dev_id_low = TABLAT;
    __asm
                tblrd*+
        __endasm;
    dev_id_high = TABLAT;
    return (dev_id_high << 8) + dev_id_low;
}



------------------------------------------------------------------------------
HPCC Systems Open Source Big Data Platform from LexisNexis Risk Solutions
Find What Matters Most in Your Big Data with HPCC Systems
Open Source. Fast. Scalable. Simple. Ideal for Dirty Data.
Leverages Graph Analysis for Fast Processing & Easy Data Exploration
http://p.sf.net/sfu/hpccsystems
_______________________________________________
Sdcc-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/sdcc-user

Reply via email to