Fixed asserts
This commit is contained in:
parent
72a9b8ef8c
commit
884f49d6b5
1 changed files with 2 additions and 2 deletions
|
|
@ -566,14 +566,14 @@ Memory.prototype = {
|
||||||
this.resetReadAccess();
|
this.resetReadAccess();
|
||||||
if (DEBUG && this.dbg) this.dbg.println("all read breakpoints removed from memory block " + str.toHex(this.addr));
|
if (DEBUG && this.dbg) this.dbg.println("all read breakpoints removed from memory block " + str.toHex(this.addr));
|
||||||
}
|
}
|
||||||
if (DEBUG && this.dbg) this.dbg.assert(this.cReadBreakpoints >= 0);
|
Component.assert(this.cReadBreakpoints >= 0);
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
if (--this.cWriteBreakpoints === 0) {
|
if (--this.cWriteBreakpoints === 0) {
|
||||||
this.resetWriteAccess();
|
this.resetWriteAccess();
|
||||||
if (DEBUG && this.dbg) this.dbg.println("all write breakpoints removed from memory block " + str.toHex(this.addr));
|
if (DEBUG && this.dbg) this.dbg.println("all write breakpoints removed from memory block " + str.toHex(this.addr));
|
||||||
}
|
}
|
||||||
if (DEBUG && this.dbg) this.dbg.assert(this.cWriteBreakpoints >= 0);
|
Component.assert(this.cWriteBreakpoints >= 0);
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
/**
|
/**
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue