public void DefaultAssembleableCommandTestMOV() { var cmd = new AssemblableCommand(context, "mov ax,bx"); cmd.Assemble(); context.MainMemory.SetValues(300, cmd.Assemble()); Assert.IsTrue(context.MainMemory.Dump(300, 2) == "89-D8"); }
public void MemoryAssembleableCommandTestMOV() { var cmd = new AssemblableCommand(context, "mov ax,[100]"); context.MainMemory.SetValues(300, cmd.Assemble()); Assert.IsTrue(context.MainMemory.Dump(300, 3) == "A1-00-01"); }
public void ImmediateMemoryCommandTestMOV() { var cmd = new AssemblableCommand(context, "mov [0123],00FF"); context.MainMemory.SetValues(300, cmd.Assemble()); Assert.IsTrue(context.MainMemory.Dump(300, 6) == "C7-06-23-01-FF-00"); }
public void ImmediateAssembleableCommandTestSIMOV() { var cmd = new AssemblableCommand(context, "mov si,B7"); context.MainMemory.SetValues(300, cmd.Assemble()); Assert.IsTrue(context.MainMemory.Dump(300, 3) == "BE-B7-00"); }