|
|
|
@@ -123,6 +123,24 @@ int nese_frame_ready(void* plat_data) { |
|
|
|
|
|
|
|
t_last = t_now; |
|
|
|
*/ |
|
|
|
/* |
|
|
|
uint8_t* ptr = &plat->sys->core.memory.ppu.vram[0x3C0]; |
|
|
|
for (int y = 0; y < 16; y += 2) { |
|
|
|
printf("%04lX", 0x2000 + ptr - plat->sys->core.memory.ppu.vram); |
|
|
|
for (int x = 0; x < 8; ++x) { |
|
|
|
printf(" %d %d", (*ptr >> 0) & 3, (*ptr >> 2) & 3); |
|
|
|
++ptr; |
|
|
|
} |
|
|
|
ptr -= 8; |
|
|
|
fputs("\n ", stdout); |
|
|
|
for (int x = 0; x < 8; ++x) { |
|
|
|
printf(" %d %d", (*ptr >> 4) & 3, (*ptr >> 6) & 3); |
|
|
|
++ptr; |
|
|
|
} |
|
|
|
putc('\n', stdout); |
|
|
|
} |
|
|
|
putc('\n', stdout); |
|
|
|
*/ |
|
|
|
|
|
|
|
SDL_BlitSurface(plat->screen, NULL, plat->target, NULL); |
|
|
|
|
|
|
|
|