public override void execute(SwapRegisters ins) { int reg1 = ins.Register1; int reg2 = ins.Register2; double tmp = registers[reg1]; registers[reg1] = registers[reg2]; registers[reg2] = tmp; }
public abstract void execute(SwapRegisters ins);
public override void execute(SwapRegisters ins) { int reg1 = ins.Register1; int reg2 = ins.Register2; double tmp = registers[reg1]; registers[reg1] = registers[reg2]; registers[reg2] = tmp; }
public abstract void execute(SwapRegisters ins);