public static void Initiate(byte[] data, ROMMapMode mode, ROMSpeed speed) { rom_map_mode = mode; rom_speed = speed; int size = data.Length; alias = new Dictionary <int, string>(); comment = new Dictionary <int, string>(); table = new List <ROMByte>(); for (int i = 0; i < size; i++) { ROMByte r = new ROMByte { Rom = data[i], DataBank = 0, DirectPage = 0, XFlag = false, MFlag = false, TypeFlag = FlagType.Unreached, Arch = Architechture.CPU65C816, Point = 0 }; table.Add(r); } }
public static void Restore(List <ROMByte> l = null, ROMMapMode m = ROMMapMode.LoROM, ROMSpeed s = ROMSpeed.Unknown, Dictionary <int, string> a = null, Dictionary <int, string> c = null) { table = l ?? table; rom_map_mode = s == ROMSpeed.Unknown ? rom_map_mode : m; rom_speed = s == ROMSpeed.Unknown ? rom_speed : s; alias = a ?? alias; comment = c ?? comment; }