An emulator, assembler, and disassembler for the Sega Game Gear
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.
 
 
 
 
 

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