Added support for both 80286 and 80386 gates and TSS segments
This commit is contained in:
parent
4492e737cb
commit
4102ef0514
5 changed files with 198 additions and 87 deletions
|
|
@ -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;
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue