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

How to set system stack other than 0xFC00?

Hi,
All the SP, STKOV, and STKUV's highest 4 bits are masked to '1'. Does that mean those registers have to be 0xFxxx only? May I change the system stack to somewhere else, say 0xc200?

Thanks a lot.

Parents
  • All the SP, STKOV, and STKUV's highest 4 bits are masked to '1'. Does that mean those registers have to be 0xFxxx only?

    Yes.

    May I change the system stack to somewhere else, say 0xc200?

    No, you can't do that. It's a hardware limitation. Even if you try to write something other than 0xFxxx to SP, STKOV, or STKUN, the 4 most significant bits will be ignored.

    - mike

Reply
  • All the SP, STKOV, and STKUV's highest 4 bits are masked to '1'. Does that mean those registers have to be 0xFxxx only?

    Yes.

    May I change the system stack to somewhere else, say 0xc200?

    No, you can't do that. It's a hardware limitation. Even if you try to write something other than 0xFxxx to SP, STKOV, or STKUN, the 4 most significant bits will be ignored.

    - mike

Children