test
This commit is contained in:
parent
d964c21903
commit
83e9dbd1e6
3 changed files with 15 additions and 7 deletions
14
sae/m68k.js
14
sae/m68k.js
|
|
@ -198,8 +198,8 @@ function SAEO_M68K() {
|
|||
else
|
||||
setTimeout(function() { SAER.m68k.m68k_cycle(0, 0); }, 0);
|
||||
}
|
||||
|
||||
var counter = 0;
|
||||
|
||||
var counter = 0;
|
||||
|
||||
this.m68k_cycle = function(hardboot, startup) {
|
||||
try {
|
||||
|
|
@ -207,6 +207,8 @@ var counter = 0;
|
|||
cpu_keyboardreset = SAEV_command == SAEC_command_KeyboardReset;
|
||||
cpu_hardreset = ((SAEV_command == SAEC_command_HardReset ? 1 : 0) | hardboot) != 0;
|
||||
|
||||
console.warn("m68k_cycle() command start...", SAEV_command, cpu_hardreset);
|
||||
|
||||
if (SAEV_command == SAEC_command_Quit) {
|
||||
this.m68k_gone();
|
||||
return;
|
||||
|
|
@ -243,6 +245,7 @@ var counter = 0;
|
|||
SAEV_config.hook.event.reseted(cpu_hardreset);
|
||||
|
||||
cpu_hardreset = false;
|
||||
console.warn("m68k_cycle() ...command done", SAEV_command, cpu_hardreset);
|
||||
}
|
||||
|
||||
if (startup) {
|
||||
|
|
@ -265,13 +268,13 @@ var counter = 0;
|
|||
if (prevtime !== false) // && SAEV_config.cpu.speed >= 0)
|
||||
SAEV_Events_reflowtime = SAEF_now() - prevtime;
|
||||
|
||||
console.log("loop", counter++);
|
||||
|
||||
SAER_CPU_run_func();
|
||||
|
||||
//if (SAEV_config.cpu.speed >= 0)
|
||||
prevtime = SAEF_now();
|
||||
|
||||
console.log("loop", counter++);
|
||||
|
||||
setTimeout(function() { SAER.m68k.m68k_cycle(hardboot, startup); }, 0);
|
||||
} catch(e) {
|
||||
this.m68k_gone();
|
||||
|
|
@ -288,6 +291,7 @@ console.log("loop", counter++);
|
|||
var hardboot = 1;
|
||||
var startup = 1;
|
||||
|
||||
console.warn("stage 3, calling setTimeout()...");
|
||||
counter = 0;
|
||||
|
||||
//SAEF_info("m68k.m68k_go()");
|
||||
|
|
@ -296,6 +300,8 @@ counter = 0;
|
|||
SAER.running = true;
|
||||
//this.m68k_cycle(1, 1);
|
||||
setTimeout(function() { SAER.m68k.m68k_cycle(hardboot, startup); }, 0);
|
||||
|
||||
console.warn("stage 4, ...done");
|
||||
}
|
||||
this.m68k_gone = function() {
|
||||
//SAEF_info("m68k.m68k_gone()");
|
||||
|
|
|
|||
Loading…
Reference in a new issue