#536 Symbol DPSEL is missing for c515c

closed-rejected
nobody
None
5
2003-08-15
2003-06-23
Marc Feld
No

On some 8051, e.g on Infinion c515c there are 8 DPTR
Registers.
The "Data Pointer Select Register" (DPSEL) select the
aktiv one.

DPSEL sfr 0x92

The Symbol is unknown to the assembler and is missing
in regc515c.h.

SDCC :
mcs51/gbz80/z80/avr/ds390/pic14/pic16/TININative/xa51/ds400
2.3.5 (Jun 17 2003) (UNIX)

Thanks

Discussion

  • Erik Petrich
    Erik Petrich
    2003-08-15

    Logged In: YES
    user_id=635249

    The declaration

    sfr at 0x92 DPSEL;

    has been in regc515c.h since its initial check-in.

    The assembler only knows about the original 8051 registers.
    However; if you are using inline assembly from within C, you
    can access the sfrs defined in the include file, but you'll
    need to add a leading underscore.
    For example:

    #include <regc515c.h>

    void test(void) {
    _asm
    inc _DPSEL
    _endasm;
    }

     
  • Erik Petrich
    Erik Petrich
    2003-08-15

    • status: open --> open-rejected
     
  • Erik Petrich
    Erik Petrich
    2003-08-15

    • status: open-rejected --> closed-rejected