internal void SaveState(BinaryWriter bin) { board.SaveState(bin); bin.Write(WRAM); bin.Write(palettes_bank); bin.Write(oam_ram); bin.Write(oam_secondary); bin.Write(BUS_ADDRESS); bin.Write(BUS_RW); bin.Write(BUS_RW_P); bin.Write(temp_4015); bin.Write(temp_4016); bin.Write(temp_4017); }