Previous 199869 Revisions Next

r20549 Sunday 27th January, 2013 at 19:19:48 UTC by Wilbert Pol
(MESS) odyssey2.c: Registered some members for state saving (nw)
[src/mess/drivers]odyssey2.c

trunk/src/mess/drivers/odyssey2.c
r20548r20549
4747   required_device<i8244_device> m_i8244;
4848
4949   int m_the_voice_lrq_state;
50   UINT8 *m_ram;
50   UINT8 m_ram[256];
5151   UINT8 m_p1;
5252   UINT8 m_p2;
5353   size_t m_cart_size;
r20548r20549
6363   DECLARE_WRITE8_MEMBER(p2_write);
6464   DECLARE_READ8_MEMBER(t1_read);
6565   DECLARE_DRIVER_INIT(odyssey2);
66   virtual void machine_start();
6667   virtual void machine_reset();
6768   virtual void palette_init();
6869   UINT32 screen_update_odyssey2(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
r20548r20549
112113   required_device<ef9340_1_device> m_ef9340_1;
113114
114115   virtual void palette_init();
116   virtual void machine_start();
115117   virtual void machine_reset();
116118   DECLARE_WRITE8_MEMBER(p2_write);
117119   DECLARE_READ8_MEMBER(io_read);
r20548r20549
340342   UINT8 *gfx = memregion("gfx1")->base();
341343   device_image_interface *image = dynamic_cast<device_image_interface *>(machine().device("cart"));
342344
343   m_ram        = auto_alloc_array(machine(), UINT8, 256);
344
345345   for (i = 0; i < 256; i++)
346346   {
347347      gfx[i] = i;     /* TODO: Why i and not 0? */
r20548r20549
363363}
364364
365365
366void odyssey2_state::machine_start()
367{
368   save_pointer(NAME(m_ram),256);
369   save_item(NAME(m_p1));
370   save_item(NAME(m_p2));
371   save_item(NAME(m_cart_size));
372   save_item(NAME(m_lum));
373   save_item(NAME(m_the_voice_lrq_state));
374}
375
376
366377void odyssey2_state::machine_reset()
367378{
368379   m_lum = 0;
r20548r20549
374385}
375386
376387
388void g7400_state::machine_start()
389{
390   odyssey2_state::machine_start();
391
392   save_pointer(NAME(m_ic674_decode),8);
393   save_pointer(NAME(m_ic678_decode),8);
394}
395
396
377397void g7400_state::machine_reset()
378398{
379399   odyssey2_state::machine_reset();

Previous 199869 Revisions Next


© 1997-2024 The MAME Team