summaryrefslogtreecommitdiff
path: root/mknes.c
diff options
context:
space:
mode:
Diffstat (limited to 'mknes.c')
-rw-r--r--mknes.c15
1 files changed, 11 insertions, 4 deletions
diff --git a/mknes.c b/mknes.c
index 9b58753..6bb0475 100644
--- a/mknes.c
+++ b/mknes.c
@@ -90,6 +90,7 @@ static GLFWwindow *window;
#include "render.c"
static uint32_t frames; // debug information
+// #include "smb_tas.h" // REMOVE ME
// NES core
#include "mapper.h"
@@ -160,7 +161,6 @@ static void dump_nametable_text(struct nes_state *state, const char *filename) {
-
int main(int argc, char **argv) {
#ifdef _WIN32
timeBeginPeriod(1);
@@ -179,7 +179,9 @@ int main(int argc, char **argv) {
// ines2_load(nstate, "data/0000/Excitebike (Japan, USA).nes");
// ines2_load(nstate, "data/0000/Ice Climber (USA, Europe, Korea).nes");
// ines2_load(nstate, "data/0000/Kung Fu (Japan, USA).nes");
- ines2_load(nstate, "data/0000/Super Mario Bros. (World) (HVC-SM).nes");
+ // ines2_load(nstate, "data/0000/Super Mario Bros. (World) (HVC-SM).nes");
+ // ines2_load(nstate, "data/Super Mario Bros. (W) (V1.0) [!].nes");
+ ines2_load(nstate, "data/Super Mario Bros. (JU) [!].nes");
// ines2_load(nstate, "data/0000/Urban Champion (World).nes");
// ines2_load(nstate, "data/0000/Wrecking Crew (World).nes");
// ines2_load(nstate, "data/0000/scanline.nes");
@@ -199,11 +201,13 @@ int main(int argc, char **argv) {
// ines2_load(nstate, "data/0000/Xevious - The Avenger (USA).zip");
// ines2_load(nstate, "data/tv.nes");
+ // ines2_load(nstate, "data/Rad Racer II (USA).zip");
+
// ines2_load(nstate, "data/0003/Flipull - An Exciting Cube Game (Japan) (En).zip");
// ines2_load(nstate, "data/0003/Friday the 13th (USA).zip");
// ines2_load(nstate, "data/0003/Ghostbusters (Japan).zip");
// ines2_load(nstate, "data/0003/Gradius (USA).zip");
- ines2_load(nstate, "data/0007/Battletoads (USA).zip");
+ // ines2_load(nstate, "data/0007/Battletoads (USA).zip");
// ines2_load(nstate, "data/0007/Beetlejuice (USA).zip");
// ines2_load(nstate, "data/0007/Cabal (USA).zip");
@@ -275,6 +279,9 @@ int main(int argc, char **argv) {
// printf("Frame: %d\n", frames);
+
+// static int32_t tas_frame = 0;
+// nstate->input[0] = tas_input[tas_frame++];
while(!nstate->ppu.frame_ready) {
// PROFILE_NAMED("nes emulator");
cpu_tick(nstate);
@@ -282,7 +289,7 @@ int main(int argc, char **argv) {
nstate->ppu.frame_ready = 0;
frames++;
-dump_nametable_text(nstate, "_foofbomb.txt");
+// dump_nametable_text(nstate, "_foofbomb.txt");
uint32_t * restrict dst = display_buffer; //buffer;
uint8_t * restrict src = nstate->pixels;