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.
 
 
 
 
 

28 line
917 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. #include "state.h"
  7. #define dparse__Bool dparse_bool
  8. /* Functions */
  9. bool parse_bool(bool*, const char*, ssize_t);
  10. bool parse_uint32_t(uint32_t*, const char*, ssize_t);
  11. bool parse_string(char**, size_t*, const char*, ssize_t);
  12. bool parse_bytes(uint8_t**, size_t*, const char*, ssize_t);
  13. bool dparse_bool(bool*, const ASMLine*, const char*);
  14. bool dparse_uint32_t(uint32_t*, const ASMLine*, const char*);
  15. bool dparse_uint16_t(uint16_t*, const ASMLine*, const char*);
  16. bool dparse_uint8_t(uint8_t*, const ASMLine*, const char*);
  17. bool dparse_rom_size(uint32_t*, const ASMLine*, const char*);
  18. bool dparse_region_string(uint8_t*, const ASMLine*, const char*);
  19. bool dparse_size_code(uint8_t*, const ASMLine*, const char*);