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

MCS-51 available internal ROM

Is all of the 4kb internal ROM on Intel MCS-51 available for user code? Are there any system routines that might take up some of the space? I managed to optimize my code to 4091b and I'd really like to know whether I need to optimize it further.

Thanks.

Parents
  • I'm wondering if this is where the entry point of user's program is stored or if the location is the beginning of a system routine that performs the reset.

    OK, shake your head 5 times, so the dust get out.

    Today you can't even buy a ROM version of the '51, thus all code is "out in the open" and no hidden "system routines" exist. The code that was provided by the customer for the original '51 also started right off 0.

    unless YOU include them there are no "system routines"

    OK, in C the compiler include startup.a51 but that is not a "system routine", it is a "compiler initializer"

    if you have books or something that babble about the original MCS-51 THROW IT OUT!

    Erik

Reply
  • I'm wondering if this is where the entry point of user's program is stored or if the location is the beginning of a system routine that performs the reset.

    OK, shake your head 5 times, so the dust get out.

    Today you can't even buy a ROM version of the '51, thus all code is "out in the open" and no hidden "system routines" exist. The code that was provided by the customer for the original '51 also started right off 0.

    unless YOU include them there are no "system routines"

    OK, in C the compiler include startup.a51 but that is not a "system routine", it is a "compiler initializer"

    if you have books or something that babble about the original MCS-51 THROW IT OUT!

    Erik

Children