Skip to content

Commit

Permalink
Fix SGX vpc register echo ( #168 )
Browse files Browse the repository at this point in the history
  • Loading branch information
dshadoff committed Oct 14, 2024
1 parent e11909f commit 1d9836f
Showing 1 changed file with 17 additions and 10 deletions.
27 changes: 17 additions & 10 deletions mednafen/src/pce/vce.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -831,17 +831,24 @@ uint8 VCE::ReadVDC(uint32 A)

if(A & 0x8)
{
ret = 0;

switch(A)
if (A & 0x10)
{
ret = 0xFF;
}
else
{
case 0x8: ret = priority[0]; break;
case 0x9: ret = priority[1]; break;
case 0xA: ret = winwidths[0]; break;
case 0xB: ret = winwidths[0] >> 8; break;
case 0xC: ret = winwidths[1]; break;
case 0xD: ret = winwidths[1] >> 8; break;
case 0xE: ret = 0; break;
ret = 0;

switch(A)
{
case 0x8: ret = priority[0]; break;
case 0x9: ret = priority[1]; break;
case 0xA: ret = winwidths[0]; break;
case 0xB: ret = winwidths[0] >> 8; break;
case 0xC: ret = winwidths[1]; break;
case 0xD: ret = winwidths[1] >> 8; break;
case 0xE: ret = 0; break;
}
}
}
else
Expand Down

0 comments on commit 1d9836f

Please sign in to comment.