/// <summary> /// Loads bytes into memory at specified location and loads the reset /// vector (0xFFFC and 0xFFFD) with start of the program. /// </summary> /// <param name="data"></param> /// <param name="location">where to start writing and set reset vector to</param> public void LoadRom(byte[] data, ushort location) { for (int i = 0; i < data.Length; i++) { _ram.Set(i + location, data[i]); } }