diff --git a/Source/Project64/N64 System/Mips/FlashRam.cpp b/Source/Project64/N64 System/Mips/FlashRam.cpp index 07b1205ea..27d83c0a9 100644 --- a/Source/Project64/N64 System/Mips/FlashRam.cpp +++ b/Source/Project64/N64 System/Mips/FlashRam.cpp @@ -67,8 +67,8 @@ void CFlashram::DmaFromFlashram ( BYTE * dest, int StartOffset, int len) _Notify->DisplayError("Reading m_FlashStatus not being handled correctly\nStart: %X len: %X",StartOffset,len); #endif } - *((DWORD *)(dest)) = (DWORD)(m_FlashStatus >> 32); - *((DWORD *)(dest) + 1) = (DWORD)(m_FlashStatus); + *((DWORD *)(dest)) = (DWORD)((m_FlashStatus >> 32) & 0xFFFFFFFF); + *((DWORD *)(dest) + 1) = (DWORD)(m_FlashStatus & 0xFFFFFFFF); break; #ifndef EXTERNAL_RELEASE default: