Skip to content

Commit

Permalink
Update DebugMMU.cpp
Browse files Browse the repository at this point in the history
Fix capitalization, fix abbreviations
  • Loading branch information
DerekTurtleRoe committed Mar 18, 2021
1 parent b7d1c1d commit 39dc60e
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions Source/Project64/UserInterface/Debugger/DebugMMU.cpp
Expand Up @@ -21,7 +21,7 @@ uint8_t* CDebugMMU::GetPhysicalPtr(uint32_t paddr, WORD* flags)
bool bCartRom = false;

if ((paddr < g_MMU->RdramSize()) ||
(paddr >= 0x04000000 && paddr <= 0x04001FFF)) // RDRAM & DMEM/IMEM
(paddr >= 0x04000000 && paddr <= 0x04001FFF)) // RDRAM and DMEM/IMEM
{
ptr = (uint8_t*)(g_MMU->Rdram() + paddr);
}
Expand Down Expand Up @@ -55,7 +55,7 @@ uint8_t* CDebugMMU::GetPhysicalPtr(uint32_t paddr, WORD* flags)
}
else
{
// note: write-only registers are excluded
// Note: write-only registers are excluded
switch (paddr)
{
case 0x03F00000: ptr = (uint8_t*)&g_Reg->RDRAM_CONFIG_REG; break;
Expand Down Expand Up @@ -176,7 +176,7 @@ bool CDebugMMU::GetPhysicalByte(uint32_t paddr, uint8_t* value)
{
uint32_t saveOffset = paddr & 0x000FFFFF;

if (g_System->m_SaveUsing == SaveChip_Sram && saveOffset <= 0x7FFF) // sram
if (g_System->m_SaveUsing == SaveChip_Sram && saveOffset <= 0x7FFF) // SRAM
{
uint32_t wordpaddr = paddr & ~3;
uint8_t data[4];
Expand All @@ -186,7 +186,7 @@ bool CDebugMMU::GetPhysicalByte(uint32_t paddr, uint8_t* value)
*value = data[nByte ^ 3];
return true;
}
else if (g_System->m_SaveUsing == SaveChip_FlashRam && saveOffset <= 3) // flash ram status
else if (g_System->m_SaveUsing == SaveChip_FlashRam && saveOffset <= 3) // Flash RAM status
{
CFlashram* flashRam = g_MMU->GetFlashram();
uint32_t flashStatus = flashRam->ReadFromFlashStatus(0x08000000);
Expand Down

0 comments on commit 39dc60e

Please sign in to comment.