/// <summary> /// Calls a delegate over all opcodes in this method. /// </summary> /// <param name="od">The delegate to call.</param> public void OpcodeFilter(OpcodeDelegate od) { this.Disassemble(); for (int i = 0; i < this.opcodes.Length; i++) { od(ref this.opcodes[i], this.Code); } }
public static void StoreOpcode(UInt16 Opcode, OpcodeDelegate handler) { _opcodeMap.Add(Opcode, new OpcodeHandler { name = Opcode.ToString(), OnReceive = handler }); }