]> Shamusworld >> Repos - virtualjaguar/blobdiff - src/file.cpp
Document full screen mode option and shortcut in manpage
[virtualjaguar] / src / file.cpp
index 5674abfcee92cd94a2492b844f4761ef557d649f..ac81a06dd2d1b1409cc855c86b4cde52fc8ea576 100644 (file)
@@ -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...