An emulator, assembler, and disassembler for the Sega Game Gear
Du kannst nicht mehr als 25 Themen auswählen Themen müssen entweder mit einem Buchstaben oder einer Ziffer beginnen. Sie können Bindestriche („-“) enthalten und bis zu 35 Zeichen lang sein.
 
 
 
 
 

23 Zeilen
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. }