isa8_cga_device: added save state support, fixes at least pt68k4.c save state problem (nw)

This commit is contained in:
Osso 2014-12-24 12:59:27 +01:00
parent ec5532be71
commit 06d69ed77d
2 changed files with 11 additions and 1 deletions

View File

@ -365,6 +365,16 @@ void isa8_cga_device::device_start()
astring tempstring;
m_chr_gen_base = memregion(subtag(tempstring, "gfx1"))->base();
m_chr_gen = m_chr_gen_base + m_chr_gen_offset[1];
save_item(NAME(m_framecnt));
save_item(NAME(m_mode_control));
save_item(NAME(m_color_select));
//save_item(NAME(m_status)); uncomment when used
save_item(NAME(m_update_row_type));
save_item(NAME(m_vsync));
save_item(NAME(m_hsync));
save_item(NAME(m_vram));
save_item(NAME(m_plantronics));
}

View File

@ -65,7 +65,7 @@ public:
UINT8 m_mode_control; /* wo 0x3d8 */
UINT8 m_color_select; /* wo 0x3d9 */
UINT8 m_status; /* ro 0x3da */
//UINT8 m_status; //unused? /* ro 0x3da */
int m_update_row_type;
UINT8 m_palette_lut_2bpp[4];