From e3a582976abf7d81223f82c3ef3a9909c962f957 Mon Sep 17 00:00:00 2001 From: Jeff Parsons Date: Mon, 18 May 2015 16:29:43 -0700 Subject: [PATCH] Fix broken live register display --- modules/pcjs/lib/x86cpu.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/pcjs/lib/x86cpu.js b/modules/pcjs/lib/x86cpu.js index 4f0e64e8f..c36a1498d 100644 --- a/modules/pcjs/lib/x86cpu.js +++ b/modules/pcjs/lib/x86cpu.js @@ -3700,7 +3700,7 @@ X86CPU.prototype.updateReg = function(sReg, nValue) } if (this.model < 80386) { if (sReg.length > 2) { - sReg = sReg.substr(0, 2); + sReg = sReg.substr(1, 2); } } else { if (sReg == "PS" || sReg.length > 2) {