Previous 15994 Revisions Next

r8820 Friday 20th August, 2010 at 16:14:33 UTC by Curt Coder
[ABC80X] Partially fixed regression.
[src/emu/machine]z80dart.c
[src/mess/drivers]abc80x.c

src/emu/machine/z80dart.c
r8819r8820
223223     device_z80daisy_interface(_machine, config, *this),
224224     m_config(config)
225225{
226   for (int i = 0; i < 8; i++)
227      m_int_state[i] = 0;
226228}
227229
228230
src/mess/drivers/abc80x.c
r8819r8820
546546
547547static ADDRESS_MAP_START( abc806_io_map, ADDRESS_SPACE_IO, 8 )
548548   ADDRESS_MAP_UNMAP_HIGH
549   AM_RANGE(0x00, 0x00) AM_MIRROR(0x18) AM_DEVREADWRITE(ABCBUS_TAG, abcbus_inp_r, abcbus_utp_w)
550   AM_RANGE(0x01, 0x01) AM_MIRROR(0x18) AM_DEVREADWRITE(ABCBUS_TAG, abcbus_stat_r, abcbus_cs_w)
551   AM_RANGE(0x02, 0x02) AM_MIRROR(0x18) AM_DEVWRITE(ABCBUS_TAG, abcbus_c1_w)
552   AM_RANGE(0x03, 0x03) AM_MIRROR(0x18) AM_DEVWRITE(ABCBUS_TAG, abcbus_c2_w)
553   AM_RANGE(0x04, 0x04) AM_MIRROR(0x18) AM_DEVWRITE(ABCBUS_TAG, abcbus_c3_w)
554   AM_RANGE(0x05, 0x05) AM_MIRROR(0x18) AM_DEVWRITE(ABCBUS_TAG, abcbus_c4_w)
549   AM_RANGE(0x00, 0x00) AM_MIRROR(0xff18) AM_DEVREADWRITE(ABCBUS_TAG, abcbus_inp_r, abcbus_utp_w)
550   AM_RANGE(0x01, 0x01) AM_MIRROR(0xff18) AM_DEVREADWRITE(ABCBUS_TAG, abcbus_stat_r, abcbus_cs_w)
551   AM_RANGE(0x02, 0x02) AM_MIRROR(0xff18) AM_DEVWRITE(ABCBUS_TAG, abcbus_c1_w)
552   AM_RANGE(0x03, 0x03) AM_MIRROR(0xff18) AM_DEVWRITE(ABCBUS_TAG, abcbus_c2_w)
553   AM_RANGE(0x04, 0x04) AM_MIRROR(0xff18) AM_DEVWRITE(ABCBUS_TAG, abcbus_c3_w)
554   AM_RANGE(0x05, 0x05) AM_MIRROR(0xff18) AM_DEVWRITE(ABCBUS_TAG, abcbus_c4_w)
555555   AM_RANGE(0x06, 0x06) AM_MIRROR(0xff18) AM_WRITE(abc806_hrs_w)
556   AM_RANGE(0x07, 0x07) AM_MIRROR(0x18) AM_DEVREAD(ABCBUS_TAG, abcbus_rst_r) AM_WRITE(abc806_hrc_w)
556   AM_RANGE(0x07, 0x07) AM_MIRROR(0xff18) AM_DEVREAD(ABCBUS_TAG, abcbus_rst_r) AM_WRITE(abc806_hrc_w)
557557   AM_RANGE(0x20, 0x23) AM_MIRROR(0xff0c) AM_DEVREADWRITE(Z80DART_TAG, z80dart_ba_cd_r, z80dart_ba_cd_w)
558558   AM_RANGE(0x31, 0x31) AM_MIRROR(0xff06) AM_DEVREAD(MC6845_TAG, mc6845_register_r)
559559   AM_RANGE(0x34, 0x34) AM_MIRROR(0xff00) AM_MASK(0xff00) AM_READWRITE(abc806_mai_r, abc806_mao_w)
r8819r8820
13631363
13641364   if (address >= 0x7800 && address < 0x8000)
13651365   {
1366      direct.explicit_configure(0x7800, 0x8000, 0x7fff, memory_region(machine, Z80_TAG));
1366      direct.explicit_configure(0x7800, 0x7fff, 0x7ff, *direct.space().m_machine.region(Z80_TAG));
13671367
13681368      if (!state->fetch_charram)
13691369      {
r8819r8820
13911391   {
13921392      if (address >= 0x7800 && address < 0x8000)
13931393      {
1394         direct.explicit_configure(0x7800, 0x8000, 0x7fff, memory_region(machine, Z80_TAG));
1394         direct.explicit_configure(0x7800, 0x7fff, 0x7ff, *direct.space().m_machine.region(Z80_TAG));
13951395         return ~0;
13961396      }
13971397   }
r8819r8820
14101410
14111411   if (address >= 0x7800 && address < 0x8000)
14121412   {
1413      direct.explicit_configure(0x7800, 0x8000, 0x7fff, memory_region(machine, Z80_TAG));
1413      direct.explicit_configure(0x7800, 0x7fff, 0x7ff, *direct.space().m_machine.region(Z80_TAG));
14141414
14151415      if (!state->fetch_charram)
14161416      {
r8819r8820
14321432
14331433static DRIVER_INIT( abc800 )
14341434{
1435   cputag_get_address_space(machine, Z80_TAG, ADDRESS_SPACE_PROGRAM)->set_direct_update_handler(direct_update_delegate_create_static(abc800_direct_update_handler, *machine));
1435   address_space *program = machine->device<cpu_device>(Z80_TAG)->space(AS_PROGRAM);
1436   program->set_direct_update_handler(direct_update_delegate_create_static(abc800_direct_update_handler, *machine));
14361437}
14371438
14381439static DRIVER_INIT( abc802 )
14391440{
1440   cputag_get_address_space(machine, Z80_TAG, ADDRESS_SPACE_PROGRAM)->set_direct_update_handler(direct_update_delegate_create_static(abc802_direct_update_handler, *machine));
1441   address_space *program = machine->device<cpu_device>(Z80_TAG)->space(AS_PROGRAM);
1442   program->set_direct_update_handler(direct_update_delegate_create_static(abc802_direct_update_handler, *machine));
14411443}
14421444
14431445static DRIVER_INIT( abc806 )
14441446{
1445   cputag_get_address_space(machine, Z80_TAG, ADDRESS_SPACE_PROGRAM)->set_direct_update_handler(direct_update_delegate_create_static(abc806_direct_update_handler, *machine));
1447   address_space *program = machine->device<cpu_device>(Z80_TAG)->space(AS_PROGRAM);
1448   program->set_direct_update_handler(direct_update_delegate_create_static(abc806_direct_update_handler, *machine));
14461449}
14471450
14481451/* System Drivers */

Previous 15994 Revisions Next


© 1998-2018 The MESS Team