public void Signed_16bit() { TestContext.WriteLine("signed 16bit"); var val0 = (short)cpu.signed16(0); var val7fff = (short)cpu.signed16(0x7FFF); var val8000 = (short)cpu.signed16(0x8000); var valffff = (short)cpu.signed16(0xFFFF); //ushort valUndef = cpu.signed16(); Assert.That(val0, Is.EqualTo(0)); Assert.That(val7fff, Is.EqualTo(32767)); Assert.That(val8000, Is.EqualTo(-32768)); Assert.That(valffff, Is.EqualTo(-1)); //Assert.That(valUndef, Is.EqualTo(undefined)); }