2 ms·
Am I missing the part where the registers and memory are 16 bits? this.data = new Array(size); ... a = d.data[pa]; b = d.data[pb]; ... case 0x2: //
by tlb 15y ago
Am I missing the part where the registers and memory are 16 bits?
this.data = new Array(size);
...
a = d.data[pa];
b = d.data[pb];
...
case 0x2: // ADD a, b
res = a + b;
...
d.data[pa] = res;
- jazzychad 15y agooops, meant to be d.data[pa] = res & 0xffff; updated, thanks!