X-Git-Url: http://shamusworld.gotdns.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;ds=sidebyside;f=src%2Ffile.cpp;h=ac81a06dd2d1b1409cc855c86b4cde52fc8ea576;hb=685bb45b7766e8a12cd0de8ee486b9a61183c425;hp=5674abfcee92cd94a2492b844f4761ef557d649f;hpb=ab4f660439ff855171f801e3fdfa3e9de69d991b;p=virtualjaguar diff --git a/src/file.cpp b/src/file.cpp index 5674abf..ac81a06 100644 --- a/src/file.cpp +++ b/src/file.cpp @@ -135,6 +135,9 @@ bool JaguarLoadFile(char * path) { jaguarCartInserted = true; memcpy(jagMemSpace + 0x800000, buffer, jaguarROMSize); +// Checking something... +jaguarRunAddress = GET32(jagMemSpace, 0x800404); +WriteLog("FILE: Cartridge run address is reported as $%X...\n", jaguarRunAddress); delete[] buffer; return true; } @@ -220,6 +223,11 @@ bool JaguarLoadFile(char * path) memcpy(jagMemSpace + loadAddress, buffer + 0x2E, jaguarROMSize - 0x2E); delete[] buffer; jaguarRunAddress = runAddress; + +// Hmm. Is this kludge necessary? +SET32(jaguarMainRAM, 0x10, 0x00001000); // Set Exception #4 (Illegal Instruction) +SET16(jaguarMainRAM, 0x1000, 0x60FE); // Here: bra Here + return true; // } // else // Special WTFOMGBBQ type here...