PancakeNESEmu
A homebrewed NES Emulator written in C
|
Go to the source code of this file.
#define APU_CONTROL_READ APU_CONTROL_WRITE |
#define APU_DMC_CONF APU_DMC_START |
#define APU_NOISE_CONF APU_NOISE_START |
#define APU_REG_END APU_FRAME_COUNTER |
#define APU_SQUARE_ONE_CONF APU_SQUARE_ONE_START |
#define APU_SQUARE_ONE_START APU_REG_START |
#define APU_SQUARE_TWO_CONF APU_SQUARE_TWO_START |
#define APU_TRIANGLE_CONF APU_TRIANGLE_START |
#define BIT_0_MASK 0b00000001 |
Definition at line 27 of file macros.h.
Referenced by print_cpu_expected().
#define BIT_1_MASK 0b00000010 |
Definition at line 26 of file macros.h.
Referenced by main(), and print_cpu_expected().
#define BIT_2_MASK 0b00000100 |
Definition at line 25 of file macros.h.
Referenced by print_cpu_expected().
#define BIT_3_MASK 0b00001000 |
Definition at line 24 of file macros.h.
Referenced by print_cpu_expected().
#define BIT_4_MASK 0b00010000 |
Definition at line 23 of file macros.h.
Referenced by print_cpu_expected().
#define BIT_5_MASK 0b00100000 |
Definition at line 22 of file macros.h.
Referenced by print_cpu_expected().
#define BIT_6_MASK 0b01000000 |
Definition at line 21 of file macros.h.
Referenced by print_cpu_expected().
#define BIT_7_MASK 0b10000000 |
Definition at line 20 of file macros.h.
Referenced by main(), and print_cpu_expected().
#define ERR_ABN_OPCODE 0xff |
Definition at line 17 of file macros.h.
Referenced by execute_instruction(), and step_cpu().
#define EXIT_FAILURE 1 |
Definition at line 6 of file macros.h.
Referenced by init_memory(), and open_rom().
#define NES_SIGNATURE 0x4e45531a |
Definition at line 10 of file macros.h.
Referenced by open_rom().
#define PPU_MIRRORS_START_FIVE 0x200d |
Definition at line 80 of file macros.h.
Referenced by memory_mirroring().
#define PPU_MIRRORS_START_FOUR 0x200c |
Definition at line 79 of file macros.h.
Referenced by memory_mirroring().
#define PPU_MIRRORS_START_ONE 0x2009 |
Definition at line 76 of file macros.h.
Referenced by memory_mirroring().
#define PPU_MIRRORS_START_SEVEN 0x200f |
Definition at line 82 of file macros.h.
Referenced by memory_mirroring().
#define PPU_MIRRORS_START_SIX 0x200e |
Definition at line 81 of file macros.h.
Referenced by memory_mirroring().
#define PPU_MIRRORS_START_THREE 0x200b |
Definition at line 78 of file macros.h.
Referenced by memory_mirroring().
#define PPU_MIRRORS_START_TWO 0x200a |
Definition at line 77 of file macros.h.
Referenced by memory_mirroring().
#define PPU_MIRRORS_START_ZERO 0x2008 |
Definition at line 75 of file macros.h.
Referenced by memory_mirroring().
#define PPU_REG_END PPU_REG_SEVEN |
#define PPU_REG_FIVE 0x2005 |
Definition at line 67 of file macros.h.
Referenced by memory_mirroring().
#define PPU_REG_FOUR 0x2004 |
Definition at line 66 of file macros.h.
Referenced by memory_mirroring().
#define PPU_REG_ONE 0x2001 |
Definition at line 63 of file macros.h.
Referenced by memory_mirroring().
#define PPU_REG_SEVEN 0x2007 |
Definition at line 69 of file macros.h.
Referenced by memory_mirroring().
#define PPU_REG_SIX 0x2006 |
Definition at line 68 of file macros.h.
Referenced by memory_mirroring().
#define PPU_REG_START PPU_REG_ZERO |
#define PPU_REG_THREE 0x2003 |
Definition at line 65 of file macros.h.
Referenced by memory_mirroring().
#define PPU_REG_TWO 0x2002 |
Definition at line 64 of file macros.h.
Referenced by memory_mirroring().
#define PPU_REG_ZERO 0x2000 |
Definition at line 62 of file macros.h.
Referenced by memory_mirroring().
#define RAM_MIRROR_1_START 0x0800 |
Definition at line 51 of file macros.h.
Referenced by memory_mirroring().
#define RAM_MIRROR_2_START 0x1000 |
Definition at line 54 of file macros.h.
Referenced by memory_mirroring().
#define RAM_MIRROR_3_START 0x1800 |
Definition at line 57 of file macros.h.
Referenced by memory_mirroring().
#define STACK_END 0x1100 |
Definition at line 46 of file macros.h.
Referenced by main(), and print_stack_state().
#define STACK_START 0x11FF |
Definition at line 45 of file macros.h.
Referenced by print_stack_state().
#define TOTAL_MEM_SIZE 65536 |
Definition at line 13 of file macros.h.
Referenced by free_memory(), init_memory(), and reset_memory().