public override void InterpretCommand(List <string> parameters) { int register = 0; int.TryParse(parameters[0], out register); if (register < 8 && register >= 0) { string param2 = parameters[1].ToLower(); Program.cpu.Registers[register] = (Long68k)CmdCommandHelper.ParamToWord(param2); Console.WriteLine("Set register {0} to {1}.", register, param2); } else { Console.WriteLine("There is no register {0}. Use A register 0-7.", register); } }
public override void InterpretCommand(List <string> parameters) { Word68k p1 = CmdCommandHelper.ParamToWord(parameters[0]); Program.decoder.DecodeInstruction(p1); }