public void ADD_8xy4() { var cpu = new Cpu(); cpu.Initialize(); cpu.V[1] = 0x001; cpu.V[2] = 0x001; cpu.ADD_8xy4("1", "2"); Assert.AreEqual(0x002, cpu.V[1]); }
public void ADD_8xy4_CARRY() { var cpu = new Cpu(); cpu.Initialize(); cpu.V[1] = 0x0DD; cpu.V[2] = 0x0DD; cpu.ADD_8xy4("1", "2"); Assert.AreEqual(0x0BA, cpu.V[1]); Assert.AreEqual(0x001, cpu.V[15]); }