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.
 
 
 
 
 

31 lignes
607 B

  1. /* Copyright (C) 2014-2015 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 <stdint.h>
  6. /* Structs */
  7. typedef struct {
  8. char *data;
  9. size_t length;
  10. } Line;
  11. typedef struct {
  12. Line *lines;
  13. size_t length;
  14. } LineBuffer;
  15. typedef struct {
  16. //
  17. } ErrorInfo;
  18. /* Functions */
  19. void error_info_print(const ErrorInfo*, FILE*, const LineBuffer*);
  20. void error_info_destroy(ErrorInfo*);
  21. size_t assemble(const LineBuffer*, uint8_t**, ErrorInfo**);
  22. bool assemble_file(const char*, const char*);