Previous 199869 Revisions Next

r17747 Sunday 9th September, 2012 at 09:51:59 UTC by Curt Coder
(MESS) c128: Cleanup (nw)
[src/mess/includes]c128.h
[src/mess/machine]c128.c cbmipt.c

trunk/src/mess/machine/cbmipt.c
r17746r17747
408408   PORT_CONFNAME( 0x10, 0x10, "40 80 Display (switch) (active after a rebooting)")
409409   PORT_CONFSETTING(   0x00, "40 Columns (DIN/TV)")
410410   PORT_CONFSETTING(   0x10, "80 Columns (RGBI)")
411   PORT_CONFNAME( 0x08, 0x08, "DIN,TV / RGBI Monitor (switch)") PORT_CODE(KEYCODE_ENTER_PAD)
412   PORT_CONFSETTING(   0x00, "DIN,TV" )
413   PORT_CONFSETTING(   0x08, "RGBI" )
414411   PORT_CONFNAME( 0x06, 0x00, "Main Memory / MMU Version")
415412   PORT_CONFSETTING(   0x00, "128 KByte" )
416413   PORT_CONFSETTING(   0x02, "256 KByte" )
trunk/src/mess/machine/c128.c
r17746r17747
10821082   m_c64mode = 0;
10831083   m_vicirq = 0;
10841084
1085   m_monitor = -1;
10861085   m_cnt1 = 1;
10871086   m_sp1 = 1;
10881087   cbm_common_init();
r17746r17747
11491148
11501149   state->nmi();
11511150
1152   if ((device->machine().root_device().ioport("SPECIAL")->read() & 0x08) != state->m_monitor)
1153   {
1154      if (device->machine().root_device().ioport("SPECIAL")->read() & 0x08)
1155      {
1156         //vic2_set_rastering(vic2e, 0);
1157         //vdc8563_set_rastering(vdc8563, 1);
1158         device->machine().primary_screen->set_visible_area(0, 655, 0, 215);
1159      }
1160      else
1161      {
1162         //vic2_set_rastering(vic2e, 1);
1163         //vdc8563_set_rastering(vdc8563, 0);
1164         if (state->m_pal)
1165            device->machine().primary_screen->set_visible_area(0, VIC6569_VISIBLECOLUMNS - 1, 0, VIC6569_VISIBLELINES - 1);
1166         else
1167            device->machine().primary_screen->set_visible_area(0, VIC6567_VISIBLECOLUMNS - 1, 0, VIC6567_VISIBLELINES - 1);
1168      }
1169      state->m_monitor = device->machine().root_device().ioport("SPECIAL")->read() & 0x08;
1170   }
1171
1172
11731151   /* common keys input ports */
11741152   cbm_common_interrupt(device);
11751153
trunk/src/mess/includes/c128.h
r17746r17747
166166   int m_sp1;
167167   int m_data_out;
168168   int m_va1617;
169   int m_monitor;
170169   int m_nmilevel;
171170   DECLARE_DRIVER_INIT(c128pal);
172171   DECLARE_DRIVER_INIT(c128dcrp);

Previous 199869 Revisions Next


© 1997-2024 The MAME Team