Removed AS_DATA on all variants and AS_IO on CPU variants not having IO lines (no whatsnew)

This commit is contained in:
Miodrag Milanovic 2012-09-24 07:54:59 +00:00
parent 2dbf48bf91
commit 18ddb0bac3
2 changed files with 17 additions and 14 deletions

View file

@ -1048,8 +1048,8 @@ static CPU_INIT( m6800 )
cpustate->program = &device->space(AS_PROGRAM);
cpustate->direct = &cpustate->program->direct();
cpustate->data = &device->space(AS_DATA);
cpustate->io = &device->space(AS_IO);
//cpustate->data = &device->space(AS_DATA);
//cpustate->io = &device->space(AS_IO);
// cpustate->subtype = SUBTYPE_M6800;
cpustate->insn = m6800_insn;
@ -1201,7 +1201,7 @@ static CPU_INIT( m6801 )
cpustate->program = &device->space(AS_PROGRAM);
cpustate->direct = &cpustate->program->direct();
cpustate->data = &device->space(AS_DATA);
//cpustate->data = &device->space(AS_DATA);
cpustate->io = &device->space(AS_IO);
cpustate->clock = device->clock() / 4;
@ -1236,8 +1236,8 @@ static CPU_INIT( m6802 )
cpustate->program = &device->space(AS_PROGRAM);
cpustate->direct = &cpustate->program->direct();
cpustate->data = &device->space(AS_DATA);
cpustate->io = &device->space(AS_IO);
//cpustate->data = &device->space(AS_DATA);
//cpustate->io = &device->space(AS_IO);
state_register(cpustate, "m6802");
}
@ -1256,7 +1256,7 @@ static CPU_INIT( m6803 )
cpustate->program = &device->space(AS_PROGRAM);
cpustate->direct = &cpustate->program->direct();
cpustate->data = &device->space(AS_DATA);
//cpustate->data = &device->space(AS_DATA);
cpustate->io = &device->space(AS_IO);
cpustate->clock = device->clock() / 4;
@ -1298,8 +1298,8 @@ static CPU_INIT( m6808 )
cpustate->program = &device->space(AS_PROGRAM);
cpustate->direct = &cpustate->program->direct();
cpustate->data = &device->space(AS_DATA);
cpustate->io = &device->space(AS_IO);
//cpustate->data = &device->space(AS_DATA);
//cpustate->io = &device->space(AS_IO);
state_register(cpustate, "m6808");
}
@ -1319,7 +1319,7 @@ static CPU_INIT( hd6301 )
cpustate->program = &device->space(AS_PROGRAM);
cpustate->direct = &cpustate->program->direct();
cpustate->data = &device->space(AS_DATA);
//cpustate->data = &device->space(AS_DATA);
cpustate->io = &device->space(AS_IO);
cpustate->clock = device->clock() / 4;
@ -1344,7 +1344,7 @@ static CPU_INIT( hd63701 )
cpustate->program = &device->space(AS_PROGRAM);
cpustate->direct = &cpustate->program->direct();
cpustate->data = &device->space(AS_DATA);
//cpustate->data = &device->space(AS_DATA);
cpustate->io = &device->space(AS_IO);
cpustate->clock = device->clock() / 4;
@ -1379,8 +1379,8 @@ static CPU_INIT( nsc8105 )
cpustate->program = &device->space(AS_PROGRAM);
cpustate->direct = &cpustate->program->direct();
cpustate->data = &device->space(AS_DATA);
cpustate->io = &device->space(AS_IO);
//cpustate->data = &device->space(AS_DATA);
//cpustate->io = &device->space(AS_IO);
cpustate->insn = nsc8105_insn;
cpustate->cycles = cycles_nsc8105;
@ -1893,7 +1893,7 @@ CPU_GET_INFO( m6800 )
case CPUINFO_INT_DATABUS_WIDTH + AS_DATA: info->i = 0; break;
case CPUINFO_INT_ADDRBUS_WIDTH + AS_DATA: info->i = 0; break;
case CPUINFO_INT_ADDRBUS_SHIFT + AS_DATA: info->i = 0; break;
case CPUINFO_INT_DATABUS_WIDTH + AS_IO: info->i = 9; break;
case CPUINFO_INT_DATABUS_WIDTH + AS_IO: info->i = 0; break;
case CPUINFO_INT_ADDRBUS_WIDTH + AS_IO: info->i = 0; break;
case CPUINFO_INT_ADDRBUS_SHIFT + AS_IO: info->i = 0; break;

View file

@ -27,6 +27,9 @@ static ADDRESS_MAP_START(ehx20_mem, AS_PROGRAM, 8, hx20_state)
AM_RANGE(0x8000, 0xffff) AM_ROM
ADDRESS_MAP_END
static ADDRESS_MAP_START(ehx20_io, AS_IO, 8, hx20_state)
ADDRESS_MAP_END
/* Input ports */
static INPUT_PORTS_START( ehx20 )
INPUT_PORTS_END
@ -95,7 +98,7 @@ static MACHINE_CONFIG_START( ehx20, hx20_state )
/* basic machine hardware */
MCFG_CPU_ADD("maincpu",HD63701, 614000) // HD6301
MCFG_CPU_PROGRAM_MAP(ehx20_mem)
MCFG_CPU_IO_MAP(ehx20_io)
/* video hardware */
MCFG_SCREEN_ADD("screen", RASTER)