An emulator, assembler, and disassembler for the Sega Game Gear
您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符
 
 
 
 
 

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