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
567 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. /* Structs */
  8. typedef struct {
  9. size_t size;
  10. char *bytestr;
  11. char *line;
  12. } DisasInstr;
  13. // typedef struct { ... } Disassembly;
  14. /* Functions */
  15. void disas_instr_free(DisasInstr*);
  16. DisasInstr* disassemble_instruction(const uint8_t*);
  17. // Disassembly* disassemble(const uint8_t*); // TODO
  18. bool disassemble_file(const char*, const char*);