lcgamboa / picsim

PICsim - PIC Simulator
GNU General Public License v2.0
56 stars 14 forks source link

Microcontroller reset does not exit sleep #1

Closed klightspeed closed 4 years ago

klightspeed commented 4 years ago

Power-on reset and MCLR reset do not clear the pic->sleep flag, and as a result the CPU does not resume from sleep when the reset button is pressed or the power is removed and re-applied in picsimlab while in a sleep state.

lcgamboa commented 4 years ago

Fixed in commit https://github.com/lcgamboa/picsim/commit/2dd44dbb270fb4eb171d8d23e33b0ebb6c06760f .