OSDN Git Service

modify...
authorastoria-d <astoria-d@mail.goo.ne.jp>
Fri, 22 Mar 2013 10:59:48 +0000 (19:59 +0900)
committerastoria-d <astoria-d@mail.goo.ne.jp>
Fri, 22 Mar 2013 10:59:48 +0000 (19:59 +0900)
emulator/cpu.c
emulator/ppucore/ppucore.c
emulator/ppucore/vram.c

index 2a9a4e1..3d513c4 100644 (file)
@@ -76,9 +76,11 @@ unsigned char load_memory(unsigned short addr) {
     cpu_data_buffer = get_bus_data();
     end_bus();
 
+    /*
     dprint("                                  ");
     dprint("                                  ");
     dprint("load: @%04x = %02x\n", addr, cpu_data_buffer);
+    */
     return cpu_data_buffer;
 }
 
index 443a7b2..c465967 100644 (file)
@@ -118,7 +118,7 @@ static void *ppucore_loop(void* arg) {
             //sprite in the back
             ;
         }
-        if (ctrl_reg2.show_bg) {
+        if (1/*ctrl_reg2.show_bg*/) {
             //back ground image
             updated |= show_background();
         }
index 8aec396..5b546f2 100644 (file)
@@ -33,6 +33,11 @@ static unsigned char * attr_tbl3;
 static unsigned char * pattern_tbl0;
 static unsigned char * pattern_tbl1;
 
+//#define PPU_TEST
+#ifdef PPU_TEST
+static int first_time = TRUE;
+#endif /* PPU_TEST */
+
 /*
  * VRAM get/set functions....
  *
@@ -124,7 +129,7 @@ void vram_data_set(unsigned short addr, unsigned char data) {
     addr &= PPU_ADDR_MASK;
 
     if (addr < 2 * PATTERN_TBL_SIZE) {
-        dprint("invalid vram write addr:%04x, data:%2x\n", addr, data);
+        //dprint("invalid vram write addr:%04x, data:%2x\n", addr, data);
         //do nothing. pattern table is read only.
     }
     else if (addr >= PALETTE_START) {
@@ -213,7 +218,6 @@ unsigned char vram_data_get(unsigned short addr) {
 
 /* VRAM manipulation... */
 
-//#define PPU_TEST
 #ifdef PPU_TEST
 /*
  * ppu test function
@@ -293,7 +297,6 @@ static void test_ppu(void) {
     dump_vram(VRAM_DUMP_TYPE_PLT, 0, 0, 16);
 */
 }
-static int first_time = TRUE;
 #endif /* PPU_TEST */
 
 int show_background(void) {