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.
 
 
 
 
 

22 lines
458 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 <stdint.h>
  5. #include "errors.h"
  6. #include "parse_util.h"
  7. #define MIN_MNEMONIC_SIZE 2
  8. #define MAX_MNEMONIC_SIZE 4
  9. /* Typedefs */
  10. typedef ASMErrorDesc (*ASMInstParser)(
  11. uint8_t**, size_t*, char**, ASMArgParseInfo);
  12. /* Functions */
  13. ASMInstParser get_inst_parser(char[MAX_MNEMONIC_SIZE]);