public string InstructionAsString(int instr, VirtualMachine.InstructionType instrType, int numOperands)
    {
        string ret = instrType.ToString();

        for (int i = 1; i <= numOperands; ++i)
        {
            ret += " " + OperandAsString(instr, i);
        }
        return(ret);
    }
 public string JmpInstructionAsString(int instr, VirtualMachine.InstructionType instrType)
 {
     return(instrType.ToString() + " " + OperandAsString(instr, 1) + " " + vm.GetOperandCondition(2));
 }
 public string LdInstructionAsString(int instr, VirtualMachine.InstructionType instrType)
 {
     return(instrType.ToString() + " " + OperandAsString(instr, 1) + " " + vm.GetValue(instr));
 }