Added support for both 80286 and 80386 gates and TSS segments

This commit is contained in:
Jeff Parsons 2015-07-22 16:03:21 -07:00
commit 4102ef0514
5 changed files with 198 additions and 87 deletions

View file

@ -2061,8 +2061,8 @@ if (DEBUGGER) {
*/
Debugger.prototype.getRegIndex = function(sReg, off) {
off = off || 0;
var i = usr.indexOf(Debugger.REGS, sReg.substr(off, 2).toUpperCase());
if (i < 0 && sReg.length > 2) i = usr.indexOf(Debugger.REGS, sReg.substr(off, 3).toUpperCase());
var i = usr.indexOf(Debugger.REGS, sReg.substr(off, 3).toUpperCase());
if (i < 0) i = usr.indexOf(Debugger.REGS, sReg.substr(off, 2).toUpperCase());
return i;
};