mirror of
https://github.com/sehugg/8bitworkshop.git
synced 2024-11-25 18:33:11 +00:00
updated c64/zx .wasm emulators
This commit is contained in:
parent
1b934eb32e
commit
58b49cb6f6
BIN
res/c64.wasm
BIN
res/c64.wasm
Binary file not shown.
BIN
res/zx.wasm
BIN
res/zx.wasm
Binary file not shown.
@ -52,9 +52,9 @@ export class C64_WASMMachine extends BaseWASMMachine implements Machine, Probeab
|
|||||||
var cmd = "SYS "+this.prgstart+"\r";
|
var cmd = "SYS "+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, 10000);
|
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, 10000);
|
this.exports.machine_exec(this.sys, 20000);
|
||||||
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
|
||||||
|
Loading…
Reference in New Issue
Block a user