[Core/VDP] fixed Master System II extended video modes sprite parsing (fixes Mega Man 2 demo)

This commit is contained in:
EkeEke 2016-04-10 17:06:22 +02:00
parent 862e44f098
commit 6c9b42f768
6 changed files with 8 additions and 7 deletions

View File

@ -100,6 +100,7 @@ Genesis Plus GX 1.7.5 (xx/xx/xxxx) (Eke-Eke)
* fixed alpha channel for 15-bit (RGB555) and 32-bit (RGB888) color support * fixed alpha channel for 15-bit (RGB555) and 32-bit (RGB888) color support
* fixed register #10 state on VDP¨reset (fixes GG Terminator 2: Judgment Day) * fixed register #10 state on VDP¨reset (fixes GG Terminator 2: Judgment Day)
* fixed Mode 1 rendering (TMS99xx "text" mode) * fixed Mode 1 rendering (TMS99xx "text" mode)
* fixed Master System II extended video modes sprite parsing (fixes Mega Man 2 demo)
* fixed Game Gear display rendering regression when left/right borders were disabled * fixed Game Gear display rendering regression when left/right borders were disabled
* fixed 68k cycles delay on invalid VRAM writes (fixes "Microcosm" intro loop) * fixed 68k cycles delay on invalid VRAM writes (fixes "Microcosm" intro loop)
* optimized tile caching * optimized tile caching

Binary file not shown.

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.2 MiB

After

Width:  |  Height:  |  Size: 3.2 MiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.3 MiB

After

Width:  |  Height:  |  Size: 3.3 MiB

View File

@ -1,11 +1,11 @@
/*************************************************************************************** /***************************************************************************************
* Genesis Plus * Genesis Plus
* Video Display Processor (video output rendering) * Video Display Processor (pixel output rendering)
* *
* Support for all TMS99xx modes, Mode 4 & Mode 5 rendering * Support for all TMS99xx modes, Mode 4 & Mode 5 rendering
* *
* Copyright (C) 1998, 1999, 2000, 2001, 2002, 2003 Charles Mac Donald (original code) * Copyright (C) 1998, 1999, 2000, 2001, 2002, 2003 Charles Mac Donald (original code)
* Copyright (C) 2007-2015 Eke-Eke (Genesis Plus GX) * Copyright (C) 2007-2016 Eke-Eke (Genesis Plus GX)
* *
* Redistribution and use of this code or any derivative works are permitted * Redistribution and use of this code or any derivative works are permitted
* provided that the following conditions are met: * provided that the following conditions are met:
@ -3725,14 +3725,14 @@ void parse_satb_m4(int line)
/* Sprite Y position */ /* Sprite Y position */
ypos = st[i]; ypos = st[i];
/* Check end of sprite list marker */ /* Check end of sprite list marker (no effect in extended modes) */
if (ypos == (bitmap.viewport.h + 16)) if ((ypos == 208) && (bitmap.viewport.h == 192))
{ {
break; break;
} }
/* Wrap Y coordinate for sprites > 256-16 */ /* Wrap Y coordinate for sprites > 256-16 */
if (ypos >= 240) if (ypos > 240)
{ {
ypos -= 256; ypos -= 256;
} }

View File

@ -1,11 +1,11 @@
/*************************************************************************************** /***************************************************************************************
* Genesis Plus * Genesis Plus
* Video Display Processor (video output rendering) * Video Display Processor (pixel output rendering)
* *
* Support for all TMS99xx modes, Mode 4 & Mode 5 rendering * Support for all TMS99xx modes, Mode 4 & Mode 5 rendering
* *
* Copyright (C) 1998, 1999, 2000, 2001, 2002, 2003 Charles Mac Donald (original code) * Copyright (C) 1998, 1999, 2000, 2001, 2002, 2003 Charles Mac Donald (original code)
* Copyright (C) 2007-2015 Eke-Eke (Genesis Plus GX) * Copyright (C) 2007-2016 Eke-Eke (Genesis Plus GX)
* *
* Redistribution and use of this code or any derivative works are permitted * Redistribution and use of this code or any derivative works are permitted
* provided that the following conditions are met: * provided that the following conditions are met: