Exemple #1
0
 public Vector(Memory.CoreMemory memory, UInt16 address)
 {
     if (address > (memory.Length - 1))
     {
         throw new ArgumentException();
     }
     addr = address;
     mem  = memory;
 }
Exemple #2
0
        public static List <Vector> GetListOfVectors(Memory.CoreMemory memory, UInt16 start_address, int num_vectors)
        {
            List <Vector> retval = new List <Vector>();

            while (num_vectors-- > 0)
            {
                retval.Add(new Vector(memory, start_address));
                start_address += 2;
            }
            return(retval);
        }
Exemple #3
0
 //Offset is the first byte after the instruction i.e. the first byte that's fed into the MMU
 public abstract byte GetOperand(Memory.CoreMemory mem, UInt16 offset, Registers reg);