c64: fixed restart bug when kbd stuck

This commit is contained in:
Steven Hugg 2022-08-11 13:22:56 -05:00
parent 50cac5afd4
commit 9c25eb1fe9
1 changed files with 1 additions and 1 deletions

View File

@ -49,7 +49,7 @@ export class C64_WASMMachine extends BaseWASMMachine implements Machine, Probeab
// advance BIOS a few frames
this.exports.machine_exec(this.sys, 250000);
// type in command (SYS 2061)
var cmd = "SYS "+this.prgstart+"\r";
var cmd = "\rSYS "+this.prgstart+"\r";
for (var i=0; i<cmd.length; i++) {
var key = cmd.charCodeAt(i);
this.exports.machine_exec(this.sys, 20000);