1
0
mirror of https://github.com/sehugg/8bitworkshop.git synced 2024-05-28 23:41:32 +00:00

c64: fixed program start bug

This commit is contained in:
Steven Hugg 2022-08-12 18:43:31 -05:00
parent a3f2496785
commit 340ef9a4bc

View File

@ -54,7 +54,7 @@ export class C64_WASMMachine extends BaseWASMMachine implements Machine, Probeab
var key = cmd.charCodeAt(i); var key = cmd.charCodeAt(i);
this.exports.machine_exec(this.sys, 20000); this.exports.machine_exec(this.sys, 20000);
this.exports.machine_key_down(this.sys, key); this.exports.machine_key_down(this.sys, key);
this.exports.machine_exec(this.sys, 20000); this.exports.machine_exec(this.sys, 5000);
this.exports.machine_key_up(this.sys, key); this.exports.machine_key_up(this.sys, key);
} }
// advance clock until program starts // advance clock until program starts