public override void Exec(Processor processor) { var duration = Duration.Evaluate(processor); if (duration > 0) { NintendoSwitch.GetInstance().Press(Key, duration); Thread.Sleep(duration); } }
public override void Exec(Processor processor) { if (Operater.Compare(Left.Evaluate(processor), Right.Evaluate(processor))) { // do nothing } else { // jump if (Else != null) { processor.PC = Else.Address + 1; } else { processor.PC = EndIf.Address + 1; } } }
public override void Exec(Processor processor) { processor.Register[RegDst] = Value.Evaluate(processor); }
protected override void Init(Processor processor) { processor.Register[RegIter] = InitVal.Evaluate(processor); processor.LoopCount[this] = Count.Evaluate(processor); }
public override void Exec(Processor processor) { Thread.Sleep(Duration.Evaluate(processor)); }
public override void Exec(Processor processor) { processor.Register[RegDst] = MetaInfo.Function(processor.Register[RegDst], Value.Evaluate(processor)); }