Eliminated the NO_FLAGS hack, which was doubly-annoying because its sole purpose was to prevent writes to ONE address -- the PSW -- from modifying any flags; the proper solution is to simply ensure that all flag updates occur before the destination is written

This commit is contained in:
Jeff Parsons 2016-12-01 21:12:18 -08:00 committed by Jeff Parsons
commit a248b177fd
7 changed files with 630 additions and 662 deletions

View file

@ -1065,7 +1065,6 @@ DevicePDP11.prototype.writePSW = function(data, addr)
*/
var maskDisallowed = PDP11.PSW.UNUSED;
this.cpu.setPSW((data & ~maskDisallowed) | (this.cpu.getPSW() & maskDisallowed));
this.cpu.opFlags |= PDP11.OPFLAG.NO_FLAGS;
};
/**