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

Writing constant to ROM

Maybe this is a simple question, but I just couldn't figure it out. Can someone tell me how to place a constant variable into the specific ROM area? I would like to be able to set a constant value at a particualr ROM area and use a pointer to get it whenever I need it.

Cheers,
Tang

Parents
  • Dunno - I'm afraid you'll have to look that up for yourself in the manuals (which are all in PDF format on the free CD, and can be accessed via the Books tab in the uVision Project window):

    Look in the C51 manual for where it describes C51's segment naming & usage conventions, then look in the Assembler/Utilities manual for how to locate a specific segment at a specific address.

    Or try searching the Keil knowledge base, http://www.keil.com/search.asp

    Or, as your E-Mail appears to be at the University of Warwick, can you just pop over and ask the very nice people at Hitex? ;-)

Reply
  • Dunno - I'm afraid you'll have to look that up for yourself in the manuals (which are all in PDF format on the free CD, and can be accessed via the Books tab in the uVision Project window):

    Look in the C51 manual for where it describes C51's segment naming & usage conventions, then look in the Assembler/Utilities manual for how to locate a specific segment at a specific address.

    Or try searching the Keil knowledge base, http://www.keil.com/search.asp

    Or, as your E-Mail appears to be at the University of Warwick, can you just pop over and ask the very nice people at Hitex? ;-)

Children