An emulator, assembler, and disassembler for the Sega Game Gear
Você não pode selecionar mais de 25 tópicos Os tópicos devem começar com uma letra ou um número, podem incluir traços ('-') e podem ter até 35 caracteres.
 
 
 
 
 

31 linhas
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*);