Change how optional opcode tables are built

This commit is contained in:
Jeff Parsons 2015-03-26 16:56:37 -07:00 committed by jeffpar
commit e3a5408031
10 changed files with 145 additions and 104 deletions

View file

@ -187,10 +187,10 @@ function Computer(parmsComputer, parmsMachine, fSuspended) {
var sStatePath = null;
var sResume = parmsComputer['resume'];
if (sResume !== undefined) {
if (sResume.length > 1) {
sStatePath = this.sResumePath = sResume;
if (sResume.length == 1) {
this.resume = +sResume;
} else {
this.resume = parseInt(sResume, 10);
sStatePath = this.sResumePath = sResume;
}
}