MPLAB SIM - Status register...

Jun 22, 2010 2 Replies

With C18, I can specify the Status Z register with "STATUSbits.Z"



Can I do something similar with MPLAB SIM in the watch window? Or just list the whole STATUS register?



I see there is a lower case "n ov z dc c" at the bottom of MPLAB. Then some of these change to upper case when the program is stopped. Like: "n ov Z DC C". So I assume that means they are set or 1. And in this case the STATUS in the watch window shows red 0x07 which would seem to confirm that...


FYI - I found the following MPLAB cheat sheet which explains the various things on the status bar (page 5)...

formatting link

Thanks for that. I am sure it will be useful. Saved for future reading.

Join the Discussion

Have something to add? Share your thoughts — no account required.

Didn't find your answer?

Ask the community — no account required