Port from MESS, nw

This commit is contained in:
Angelo Salese 2011-08-07 16:12:36 +00:00
parent 5aa5a1d553
commit 19a90cdcc7
4 changed files with 487 additions and 478 deletions

View File

@ -1999,6 +1999,8 @@ static MACHINE_CONFIG_START( saturn, saturn_state )
MCFG_CPU_ADD("audiocpu", M68000, 11289600) //11.2896 MHz
MCFG_CPU_PROGRAM_MAP(sound_mem)
MCFG_TIMER_ADD_PERIODIC("sh1_cmd", stv_sh1_sim, attotime::from_hz(16667))
MCFG_MACHINE_START(saturn)
MCFG_MACHINE_RESET(saturn)
@ -2049,6 +2051,8 @@ static MACHINE_CONFIG_START( stv, saturn_state )
MCFG_CPU_ADD("audiocpu", M68000, 11289600) //11.2896 MHz
MCFG_CPU_PROGRAM_MAP(sound_mem)
MCFG_TIMER_ADD_PERIODIC("sh1_cmd", stv_sh1_sim, attotime::from_hz(16667))
MCFG_MACHINE_START(stv)
MCFG_MACHINE_RESET(stv)

View File

@ -210,3 +210,4 @@ WRITE32_HANDLER ( saturn_vdp2_regs_w );
VIDEO_START ( stv_vdp2 );
SCREEN_UPDATE( stv_vdp2 );
TIMER_DEVICE_CALLBACK( stv_sh1_sim );

File diff suppressed because it is too large Load Diff

View File

@ -3082,7 +3082,7 @@ static void stv_vdp2_draw_basic_bitmap(running_machine &machine, bitmap_t *bitma
gfxdatalow = gfxdata + stv2_current_tilemap.bitmap_map * 0x20000;
gfxdata+=(
(stv2_current_tilemap.scrollx & (xlinesize-1)) +
((stv2_current_tilemap.scrolly & (ysize-1)) * (xlinesize)) + /* TODO: mask ysize, check me! */
((stv2_current_tilemap.scrolly) * (xlinesize)) + /* TODO: mask ysize, check me! */
(stv2_current_tilemap.bitmap_map * 0x20000)
);
gfxdatahigh = gfxdatalow + xlinesize*ysize;