public Vector(Memory.CoreMemory memory, UInt16 address) { if (address > (memory.Length - 1)) { throw new ArgumentException(); } addr = address; mem = memory; }
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); }
//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);