Primitive 0x007D - Follow Sim


Use

There is no SimPe wizard for this instruction, so the following table details the meaning of each of the operands.

OperandDescriptionOperand Values
0 Target Sim
1 & 2 Qualifiers on the variable in operand 0
3 & 4 Array Number
5 Result Array From 0: Me
1: Stack Object
6 thru 15 Unused

See Also


SimPe Code

// Decompiled with JetBrains decompiler
// Type: pjse.BhavNameWizards.WizPrim0x007d
// Assembly: pjse.coder.plugin, Version=4.0.3349.37576, Culture=neutral, PublicKeyToken=null

using SimPe.PackedFiles.Wrapper;
using System;

namespace pjse.BhavNameWizards
{
  public class WizPrim0x007d : BhavWizPrim
  {
    public WizPrim0x007d(Instruction i)
      : base(i)
    {
    }

    protected override string Operands(bool lng)
    {
      byte[] numArray = new byte[16];
      ((byte[]) this.instruction.Operands).CopyTo((Array) numArray, 0);
      ((byte[]) this.instruction.Reserved1).CopyTo((Array) numArray, 8);
      string str = "" + (lng ? Localization.GetString("Target") + ": " : "") + this.dataOwner(lng, numArray[0], numArray[1], numArray[2]);
      if (lng)
        str = (str + ", " + Localization.GetString("bwp_resultIn") + ": " + Localization.GetString(numArray[5] == (byte) 0 ? "bwp_myArray" : "bwp_stackObjectArray")).Replace("[array]", this.ArrayName(lng, BhavWiz.ToShort(numArray[3], numArray[4])));
      return str;
    }
  }
}