public void AddOpcode(string Opcode, int ByteValue, int NumOperands, Opcode.AddressingType Addressing, int NumCycles, int PageBoundaryCycles, int BranchSamePagePenalty, int BranchOtherPagePenalty) { if (!Opcodes.ContainsKey(Opcode)) { Opcodes.Add(Opcode, new List <Opcode>()); } Opcode opcode = new Opcode(Opcode, ByteValue, NumOperands, Addressing, NumCycles, PageBoundaryCycles, BranchSamePagePenalty, BranchOtherPagePenalty); Opcodes[Opcode].Add(opcode); OpcodeByValue.Add((byte)ByteValue, opcode); }
public void AddOpcodeForDisassembly(string Opcode, int ByteValue, int NumOperands, Opcode.AddressingType Addressing) { Opcode opcode = new Opcode(Opcode, ByteValue, NumOperands, Addressing); OpcodeByValue.Add((byte)ByteValue, opcode); }
public void AddOpcode(string Opcode, int ByteValue, int NumOperands, Opcode.AddressingType Addressing, int NumCycles, int PageBoundaryCycles) { AddOpcode(Opcode, ByteValue, NumOperands, Addressing, NumCycles, PageBoundaryCycles, 0, 0); }