An emulator, assembler, and disassembler for the Sega Game Gear
Ви не можете вибрати більше 25 тем Теми мають розпочинатися з літери або цифри, можуть містити дефіси (-) і не повинні перевищувати 35 символів.
 
 
 
 
 

25 рядки
590 B

  1. /* Copyright (C) 2014-2015 Ben Kurtovic <ben.kurtovic@gmail.com>
  2. Released under the terms of the MIT License. See LICENSE for details. */
  3. #pragma once
  4. /* Error strings */
  5. static const char* rom_err_isdir = "Is a directory";
  6. static const char* rom_err_notfile = "Is not a regular file";
  7. static const char* rom_err_badsize = "Invalid size";
  8. static const char* rom_err_badread = "Couldn't read the entire file";
  9. /* Structs */
  10. typedef struct {
  11. char* name;
  12. char* data;
  13. unsigned size;
  14. } ROM;
  15. /* Functions */
  16. const char* rom_open(ROM**, const char*);
  17. void rom_close(ROM*);