tic(i32) => upd(), time(), first version of palette

This commit is contained in:
2021-11-27 21:02:42 +01:00
parent 0cb169d62e
commit 667a222331
7 changed files with 79 additions and 21 deletions

View File

@@ -107,7 +107,8 @@ async function runModule(data) {
}
try {
instance.exports.tic(Date.now() - startTime);
new Uint32Array(memory.buffer)[16] = Date.now() - startTime;
instance.exports.upd();
let palette = new Uint32Array(memory.buffer.slice(76920, 76920 + 1024));
for (let i = 0; i < 320 * 240; ++i) {