Updated addTimer() interface to include an ID; cleaned up how the CPU tracks the base speed, current speed, and target speed

This commit is contained in:
Jeff Parsons 2017-08-07 13:58:41 -07:00 committed by Jeff Parsons
commit e5a9b01dde
18 changed files with 2403 additions and 2387 deletions

View file

@ -86,9 +86,9 @@ class X86CPU extends CPU {
*/
constructor(parmsCPU)
{
var nCyclesDefault;
var model = +parmsCPU['model'] || X86.MODEL_8088;
var nCyclesDefault = 0;
switch(model) {
case X86.MODEL_8088:
default: