News for hackers. Stuff that matters.
Re:Javascript emulator for Notch's DCPU-16 by tlb on Wednesday April 04, 2012 @11:12PM (#3801118)
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;
Re:Javascript emulator for Notch's DCPU-16 by jazzychad on Thursday April 05, 2012 @12:04AM (#3801251)
oops, meant to be

  d.data[pa] = res & 0xffff;
updated, thanks!