X-Git-Url: http://shamusworld.gotdns.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Fthunder.cpp;fp=src%2Fthunder.cpp;h=9439026682dab5eb03a272f204baabbe473c0a4d;hb=756fbabdd25117272164fd2d31810e6018a5990e;hp=59824249291e8b3aacf52ed39f61f851a79dd39b;hpb=ad913876dd8313ff082819d8cd5a921418670657;p=thunder diff --git a/src/thunder.cpp b/src/thunder.cpp index 5982424..9439026 100644 --- a/src/thunder.cpp +++ b/src/thunder.cpp @@ -308,6 +308,10 @@ void WrMem(uint16_t addr, uint8_t b) WriteLog("\nWriteMem: CPU #1 writing $%02X to $4182!\n\n", b); } #endif +#if 1 +if (((addr >= 0x4180) && (addr <= 0x4191)) || (addr == 0x4380)) + printf("WriteMem: CPU #1 writing $%02X to $%04X...\n", b, addr); +#endif if (addr == 0x6000) SpawnSound(GAMESOUND, gram1[0x6200], 0); // Do voice chan 1 @@ -403,6 +407,10 @@ void WrMemB(uint16_t addr, uint8_t b) WriteLog("\nWriteMem: CPU #2 writing $%02X to $0182 ($4182)!\n\n", b); } #endif +#if 1 +if (((addr >= 0x0180) && (addr <= 0x0191)) || (addr == 0x0380)) + printf("WriteMem: CPU #2 writing $%02X to $%04X...\n", b, addr); +#endif if (addr == 0x6000) SpawnSound(GAMESOUND, gram1[0x6200], 0); // Do voice chan 1 @@ -1383,6 +1391,10 @@ WriteLog("About to enter main loop...\n"); case SDL_KEYDOWN: if (event.key.keysym.sym == SDLK_ESCAPE) running = false; + else if (event.key.keysym.sym == SDLK_F10) + gram1[0x41A5]++; // Coin? (F10) + else if (event.key.keysym.sym == SDLK_c) + gram1[0x418C]++; // ? (C) Start } }