mirror of https://github.com/contiki-ng/mspsim
clear interrupt related info during reset
git-svn-id: https://mspsim.svn.sourceforge.net/svnroot/mspsim/mspsim@14 23d1a52b-0c3c-0410-b72d-8f29ab48fe35
This commit is contained in:
parent
943af9d98e
commit
b7431015a4
|
|
@ -324,6 +324,12 @@ public class MSP430Core implements MSP430Constants {
|
|||
public void reset() {
|
||||
resetIOUnits();
|
||||
reg[PC] = memory[0xfffe] + (memory[0xffff] << 8);
|
||||
for (int i = 0, n = 16; i < n; i++) {
|
||||
interruptSource[i] = null;
|
||||
}
|
||||
servicedInterruptUnit = null;
|
||||
servicedInterrupt = -1;
|
||||
interruptMax = -1;
|
||||
}
|
||||
|
||||
// Indicate that we have an interrupt now!
|
||||
|
|
|
|||
Loading…
Reference in New Issue