1
0
mirror of https://github.com/sehugg/8bitworkshop.git synced 2024-11-26 10:49:17 +00:00

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

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);