public static Instruction Deserialize(StringTable table, BinaryReader reader) => new Instruction { Address = reader.ReadUInt32(), Mnemonic = table[reader.ReadInt32()], ByteString = table[reader.ReadInt32()] };
public void Serialize(StringTable table, BinaryWriter writer) { writer.Write(Address); writer.Write(table.GetKey(Mnemonic)); writer.Write(table.GetKey(ByteString)); }