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

Question about ROM(HUGE) compiler directive

Hi,
My code doesn't work if I compile it with ROM(HUGE) mode, but works fine if compile it under ROM(LARGE) mode. Any comments would be appreciated. Thank you!

Processor: p87c51MB2
CX51: V7.04d
LX51: V3.54

Parents
  • Hi,
    I found the following information from this website:

    "The ECRM mode is only available is some devices. For example, the Philips P8xC51MA/MB/MC and the P89C669 do not offer this mode. Check the device datasheet before setting the ECRM mode. "

    I know ECRM should be set to "1" if we want CALL/RET save and restore the full 3-byte program counter. To my understanding base on the information shown above, if we use p8xc51MA/MB/MC, we can't have excutable code above 64k since these chip doesn't support ECRM mode, is that right? Thank you!

    Xiao

Reply
  • Hi,
    I found the following information from this website:

    "The ECRM mode is only available is some devices. For example, the Philips P8xC51MA/MB/MC and the P89C669 do not offer this mode. Check the device datasheet before setting the ECRM mode. "

    I know ECRM should be set to "1" if we want CALL/RET save and restore the full 3-byte program counter. To my understanding base on the information shown above, if we use p8xc51MA/MB/MC, we can't have excutable code above 64k since these chip doesn't support ECRM mode, is that right? Thank you!

    Xiao

Children