public void CALL_Test() { ushort testOpcode = 0x2111; memory.opcode = testOpcode; memory.SP = 0; memory.PC = testOpcode; instructions.CALL(); Assert.AreEqual(1, memory.SP, 0, "Did not properly increment SP"); Assert.AreEqual(testOpcode, memory.stack[memory.SP], 0, "Did not properly store current opcode"); Assert.AreEqual(0x0111, memory.PC, 0, "Did not properly set PC to input value"); }