PancakeNESEmu
A homebrewed NES Emulator written in C
Loading...
Searching...
No Matches
reader.h
Go to the documentation of this file.
1
#ifndef reader_h
2
#define reader_h
3
4
#include <sys/types.h>
5
6
typedef
unsigned
char
*
rom_buffer
;
7
8
typedef
struct
{
9
rom_buffer
buff
;
10
size_t
buff_size
;
11
}
rom
;
12
18
rom
*
open_rom
(
char
* filepath);
19
24
void
display_rom
(
rom
* r);
25
30
void
free_rom
(
rom
* r);
31
32
#endif
// reader_h
rom_buffer
unsigned char * rom_buffer
Definition
reader.h:6
free_rom
void free_rom(rom *r)
Frees the rom struct.
Definition
reader.c:75
display_rom
void display_rom(rom *r)
Procedure that displays the content of the rom in hexadecimal.
Definition
reader.c:59
open_rom
rom * open_rom(char *filepath)
A function that open the NES rom at a specified path.
Definition
reader.c:7
rom
Definition
reader.h:8
rom::buff_size
size_t buff_size
The size of the buffer.
Definition
reader.h:10
rom::buff
rom_buffer buff
The buffer that contains all the ROM's data.
Definition
reader.h:9
include
rom_reader
reader.h
Generated by
1.12.0