An emulator, assembler, and disassembler for the Sega Game Gear
Vous ne pouvez pas sélectionner plus de 25 sujets Les noms de sujets doivent commencer par une lettre ou un nombre, peuvent contenir des tirets ('-') et peuvent comporter jusqu'à 35 caractères.
 
 
 
 
 

27 lignes
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*);