Added H Counter to try and fix Sonic demo - didn't work
This commit is contained in:
@@ -25,7 +25,11 @@ namespace Core.Io
|
||||
// VDP V-Counter (Vertical Scanline Position)
|
||||
return VideoProcessor.ReadVCounter();
|
||||
}
|
||||
|
||||
if (lowerPort == 0x7F)
|
||||
{
|
||||
// THE FIX: VDP H-Counter (Horizontal Pixel Position)
|
||||
return VideoProcessor.ReadHCounter();
|
||||
}
|
||||
if (lowerPort >= 0x80 && lowerPort <= 0xBF)
|
||||
{
|
||||
// Even ports (like 0xBE) are Data. Odd ports (like 0xBF) are Control.
|
||||
|
||||
Reference in New Issue
Block a user