From a9f8dd461f0d632f904a1dfe858f24f17f62e6ed Mon Sep 17 00:00:00 2001 From: Nicholas Date: Mon, 26 Jan 2015 14:58:53 +1100 Subject: [PATCH] [!]Fix a mistake made in the RTC implementation, was incorrectly --- Source/Project64/N64 System/Mips/Eeprom.cpp | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/Source/Project64/N64 System/Mips/Eeprom.cpp b/Source/Project64/N64 System/Mips/Eeprom.cpp index ddbf959f7..bd0124547 100644 --- a/Source/Project64/N64 System/Mips/Eeprom.cpp +++ b/Source/Project64/N64 System/Mips/Eeprom.cpp @@ -63,7 +63,7 @@ void CEeprom::EepromCommand ( BYTE * Command) { if (Command[1] != 8 && bHaveDebugger()) { g_Notify->DisplayError("What am I meant to do with this Eeprom Command"); } ReadFrom(&Command[4],Command[3]); break; - case 5: + case 5: //Write to Eeprom if (Command[0] != 10 && bHaveDebugger()) { g_Notify->DisplayError("What am I meant to do with this Eeprom Command"); } if (Command[1] != 1 && bHaveDebugger()) { g_Notify->DisplayError("What am I meant to do with this Eeprom Command"); } WriteTo(&Command[4],Command[3]); @@ -71,12 +71,12 @@ void CEeprom::EepromCommand ( BYTE * Command) { case 6: //RTC Status query Command[3] = 0x00; Command[4] = 0x10; - Command[12] = 0x00; + Command[5] = 0x00; break; - case 7: //Read RTC + case 7: //Read RTC block switch(Command[3]) { - case 0: + case 0: //Block number Command[4] = 0x00; Command[5] = 0x02; Command[12] = 0x00; @@ -101,6 +101,7 @@ void CEeprom::EepromCommand ( BYTE * Command) { break; case 8: //Write RTC, unimplemented + if (g_Settings->LoadDword(Debugger_ShowPifErrors)) { g_Notify->DisplayError("Write RTC, unimplemented"); } break; default: if (g_Settings->LoadDword(Debugger_ShowPifErrors)) { g_Notify->DisplayError("Unknown EepromCommand %d",Command[2]); }