Skip to content

Commit

Permalink
fix ensata emulation? (re: #184)
Browse files Browse the repository at this point in the history
  • Loading branch information
zeromus committed Aug 27, 2024
1 parent 64132f7 commit 4266702
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion desmume/src/MMU.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2468,7 +2468,16 @@ bool validateIORegsWrite(u32 addr, u8 size, u32 val)
{
if (PROCNUM == ARMCPU_ARM9)
{
switch (addr & 0x0FFFFFFC)
u32 addrMasked = addr & 0x0FFFFFFC;

if(nds.ensataEmulation)
{
if(addrMasked == eng_3D_CLIPMTX_RESULT) return true;
if(addrMasked == 0x04FFF000) return true;
if(addrMasked == 0x04FFF010) return true;
}

switch (addrMasked)
{
// Display Engine A
case REG_DISPA_DISPCNT:
Expand Down

0 comments on commit 4266702

Please sign in to comment.