NESe (pronounced "Nessie") is a NES emulator based on the e6502 emulator, also written in C with a focus on speed and portability for use on embedded platforms, especially ARM.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

17 lines
255B

  1. #ifndef NESE_FILEMAP_H_
  2. #define NESE_FILEMAP_H_
  3. typedef enum {
  4. Filemap_Mode_Read = 0,
  5. Filemap_Mode_Write,
  6. } Filemap_Mode;
  7. void* map_file(FILE* file, int size, Filemap_Mode);
  8. void unmap_file(void* mem, int size);
  9. #endif // NESE_FILEMAP_H_