summaryrefslogtreecommitdiff
path: root/cpu.c
diff options
context:
space:
mode:
Diffstat (limited to 'cpu.c')
-rw-r--r--cpu.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/cpu.c b/cpu.c
index 621fe5b..509f7a8 100644
--- a/cpu.c
+++ b/cpu.c
@@ -36,7 +36,7 @@
36#define PULL() \ 36#define PULL() \
37 (peek(0x0100 + ++regs.sp)) 37 (peek(0x0100 + ++regs.sp))
38 38
39struct Rom rom = {0}; 39struct rom rom = {0};
40uint32_t cycles = 0; 40uint32_t cycles = 0;
41 41
42bool page_crossed = false; 42bool page_crossed = false;
@@ -1020,6 +1020,7 @@ main(int argc, char *argv[])
1020 1020
1021 parse_rom(buf, buflen, &rom); 1021 parse_rom(buf, buflen, &rom);
1022 free(buf); 1022 free(buf);
1023 ppu.rom = &rom;
1023 1024
1024 cpu_init(); 1025 cpu_init();
1025 1026