示例#1
0
        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);
        }
示例#2
0
        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);
        }
示例#3
0
 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);
 }