diff options
Diffstat (limited to 'mknes.c')
| -rw-r--r-- | mknes.c | 17 |
1 files changed, 8 insertions, 9 deletions
@@ -13,6 +13,14 @@ #define WINDOW_WIDTH 320 * 3 #define WINDOW_HEIGHT 240 * 3 +#define PRG_ROM_SIZE (512 * 1024) +#define CHR_ROM_SIZE (512 * 1024) +#define PIXELS_SIZE (256 * 240) +#define RAM_SIZE 0x800 +#define SRAM_SIZE 0x2000 +#define CIRAM_SIZE 0x1000 +#define CHR_RAM_SIZE 0x4000 + #define LIKELY(x) __builtin_expect(!!(x), 1) #define UNLIKELY(x) __builtin_expect(!!(x), 0) @@ -98,15 +106,6 @@ struct nes_state nstate; static uint32_t frames; - -#define PRG_ROM_SIZE (512 * 1024) -#define CHR_ROM_SIZE (512 * 1024) -#define PIXELS_SIZE (256 * 240) -#define RAM_SIZE 0x800 -#define SRAM_SIZE 0x2000 -#define CIRAM_SIZE 0x1000 -#define CHR_RAM_SIZE 0x4000 - static struct nes_state *allocate_nes_state(void) { struct nes_state *state = (struct nes_state*)calloc(1, sizeof(struct nes_state)); if(!state) return 0; |
