An emulator, assembler, and disassembler for the Sega Game Gear
Você não pode selecionar mais de 25 tópicos Os tópicos devem começar com uma letra ou um número, podem incluir traços ('-') e podem ter até 35 caracteres.
 
 
 
 
 

26 linhas
655 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. static const char* rom_err_badheader = "Invalid header";
  10. /* Structs */
  11. typedef struct {
  12. char* name;
  13. char* data;
  14. unsigned size;
  15. } ROM;
  16. /* Functions */
  17. const char* rom_open(ROM**, const char*);
  18. void rom_close(ROM*);