Skip to content

Commit dd06a1d

Browse files
committed
Decode program commands
1 parent 8fd3df7 commit dd06a1d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

runtime.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ Promise.all([
3434
console.log(`Heap pointer: ${clsHeapPointer}, ${closureMemoryTotal / CLS_SIZE} closures ⨉ ${CLS_SIZE} bytes`);
3535

3636
const heapMem = new Uint8Array(result.instance.exports.mem.buffer, workingMemoryOffset + STACK_SIZE, closureMemoryTotal);
37-
console.log(`Program Memory: ${programMem}\n`);
37+
console.log(`Program Memory: ${([...programMem]).map(command => ['I', 'K', 'S', 'A'][command])}\n`);
3838

3939
const stackClss = [];
4040

0 commit comments

Comments
 (0)