1. 5
    1. 3

      This line isn’t right:

      this.statusRegister.negative = u8(result !== 0);
      

      It should be checking result & 0x80 or something.