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:
parent
50cac5afd4
commit
9c25eb1fe9
@ -49,7 +49,7 @@ export class C64_WASMMachine extends BaseWASMMachine implements Machine, Probeab
|
|||||||
// advance BIOS a few frames
|
// advance BIOS a few frames
|
||||||
this.exports.machine_exec(this.sys, 250000);
|
this.exports.machine_exec(this.sys, 250000);
|
||||||
// type in command (SYS 2061)
|
// 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++) {
|
for (var i=0; i<cmd.length; i++) {
|
||||||
var key = cmd.charCodeAt(i);
|
var key = cmd.charCodeAt(i);
|
||||||
this.exports.machine_exec(this.sys, 20000);
|
this.exports.machine_exec(this.sys, 20000);
|
||||||
|
Loading…
Reference in New Issue
Block a user