diff --git a/src/emu/machine/stvcd.c b/src/emu/machine/stvcd.c index a0f2de45626..eda4cd6f72c 100644 --- a/src/emu/machine/stvcd.c +++ b/src/emu/machine/stvcd.c @@ -688,6 +688,16 @@ void saturn_state::cd_exec_command( void ) cr2 = 0; cr3 = 0; cr4 = 0; + + + if(machine().input().code_pressed(KEYCODE_Z)) + { + cr1 = cd_stat | (machine().rand() & 0xff); + cr2 = machine().rand(); + cr3 = machine().rand(); + cr4 = machine().rand(); + } + hirqreg |= (CMOK|ESEL); } break; diff --git a/src/emu/video/stvvdp1.c b/src/emu/video/stvvdp1.c index 37d3325ecab..751a65504ee 100644 --- a/src/emu/video/stvvdp1.c +++ b/src/emu/video/stvvdp1.c @@ -182,8 +182,23 @@ READ16_MEMBER( saturn_state::saturn_vdp1_regs_r ) void saturn_state::stv_clear_framebuffer( int which_framebuffer ) { + int start_x, end_x, start_y, end_y; + + /* + TODO: needs to check in Hi-Res mode + */ + start_x = STV_VDP1_EWLR_X1 * 8; + start_y = STV_VDP1_EWLR_Y1; + end_x = STV_VDP1_EWRR_X3 * 8; + end_y = STV_VDP1_EWRR_Y3+1; +// popmessage("%d %d %d %d",STV_VDP1_EWLR_X1,STV_VDP1_EWLR_Y1,STV_VDP1_EWRR_X3,STV_VDP1_EWRR_Y3); + + for(int y=start_y;y color calculation window */ /* Ide Yousuke Meijin No Shin Jissen Mahjong 0x0303 */ /* Decathlete 0x088 */ - if(STV_VDP2_WCTLD & 0x2000) - popmessage("Special window enabled %04x, contact MAMEdev",STV_VDP2_WCTLD); + /* Sexy Parodius 0x2300 */ +// if(STV_VDP2_WCTLD & 0x2000) +// popmessage("Special window enabled %04x, contact MAMEdev",STV_VDP2_WCTLD); /* Shining Force III, After Burner 2 (doesn't make a proper use tho?) */ /* Layer Section */