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:
joxe 2007-10-26 13:11:08 +00:00
parent 943af9d98e
commit b7431015a4
1 changed files with 6 additions and 0 deletions

View File

@ -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!