PancakeNESEmu
A homebrewed NES Emulator written in C
|
Go to the source code of this file.
Functions | |
rom * | open_rom (char *filepath) |
A function that open the NES rom at a specified path. | |
void | display_rom (rom *r) |
Procedure that displays the content of the rom in hexadecimal. | |
void | free_rom (rom *r) |
Frees the rom struct. | |
void display_rom | ( | rom * | r | ) |
Procedure that displays the content of the rom in hexadecimal.
[in] | r | The ROM to display |
Definition at line 59 of file reader.c.
References rom::buff, and rom::buff_size.
Referenced by main().
void free_rom | ( | rom * | r | ) |
rom * open_rom | ( | char * | filepath | ) |
A function that open the NES rom at a specified path.
[in] | filepath | The path to the rom |
Definition at line 7 of file reader.c.
References rom::buff, rom::buff_size, EXIT_FAILURE, and NES_SIGNATURE.
Referenced by main().