Skip to content

Commit

Permalink
neogeoCD: big-endianize (fix boot)
Browse files Browse the repository at this point in the history
  • Loading branch information
barbudreadmon authored Aug 2, 2020
1 parent d8da666 commit 5daa471
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/burn/drv/neogeo/neo_run.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3666,10 +3666,10 @@ static void __fastcall neogeoWriteWordTransfer(UINT32 sekAddress, UINT16 wordVal
static UINT16 __fastcall neogeoCDReadWord68KProgram(UINT32 sekAddress)
{
if (sekAddress < 0x80 && NeoCDVectorSwitch == 0) {
return *((UINT16*)(NeoVectorActive + sekAddress));
return BURN_ENDIAN_SWAP_INT16(*((UINT16*)(NeoVectorActive + sekAddress)));
}

return *((UINT16*)(Neo68KROMActive + sekAddress));
return BURN_ENDIAN_SWAP_INT16(*((UINT16*)(Neo68KROMActive + sekAddress)));
}

static UINT8 __fastcall neogeoCDReadByte68KProgram(UINT32 sekAddress)
Expand Down

0 comments on commit 5daa471

Please sign in to comment.