This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

DW8051 MPAGE reg

Hi,
The Synopsis DW8051 core uses a MPAGE sfr reg at 0x92 hex instead of the standard P2 register when accessing data with MOVX etc.
Do Keil support this register? If so what do I do to enable it?

Regards

Henrik

Parents
  • "In the C51 compiler, these instructions are used only in the COMPACT memory model (for PDATA variables)."

    Incorrect: the compiler must always use these instructions for any reference to PDATA - that's what PDATA means!

    The effect of the COMPACT memory model is simply to make PDATA the default - you can still explicitly define a variable to be in PDATA in any memory model you want (in fact, some contributors will urge that you should always do so!)

Reply
  • "In the C51 compiler, these instructions are used only in the COMPACT memory model (for PDATA variables)."

    Incorrect: the compiler must always use these instructions for any reference to PDATA - that's what PDATA means!

    The effect of the COMPACT memory model is simply to make PDATA the default - you can still explicitly define a variable to be in PDATA in any memory model you want (in fact, some contributors will urge that you should always do so!)

Children