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.
 
 
 
 
 

27 lines
523 B

  1. /* Copyright (C) 2014-2016 Ben Kurtovic <ben.kurtovic@gmail.com>
  2. Released under the terms of the MIT License. See LICENSE for details. */
  3. #pragma once
  4. #include <stdbool.h>
  5. #include <stddef.h>
  6. #include <stdint.h>
  7. #include "rom.h"
  8. /* Structs */
  9. typedef struct {
  10. size_t size;
  11. char *bytestr;
  12. char *line;
  13. } DisasInstr;
  14. /* Functions */
  15. void disas_instr_free(DisasInstr*);
  16. DisasInstr* disassemble_instruction(const uint8_t*);
  17. char** disassemble(const ROM*);
  18. bool disassemble_file(const char*, const char*);