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 line
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*);