An emulator, assembler, and disassembler for the Sega Game Gear
Non puoi selezionare più di 25 argomenti Gli argomenti devono iniziare con una lettera o un numero, possono includere trattini ('-') e possono essere lunghi fino a 35 caratteri.
 
 
 
 
 

23 righe
393 B

  1. /* Copyright (C) 2014 Ben Kurtovic <ben.kurtovic@gmail.com>
  2. Released under the terms of the MIT License. See LICENSE for details. */
  3. #include <stdlib.h>
  4. #include "rom.h"
  5. #include "errors.h"
  6. rom_type* load_rom(char *path)
  7. {
  8. rom_type *rom;
  9. rom = malloc(sizeof(rom_type));
  10. if (!rom)
  11. out_of_memory();
  12. return rom;
  13. }
  14. void unload_rom(rom_type *rom)
  15. {
  16. free(rom);
  17. }