gb-emu: initial commit

Add a mostly non-functional Gameboy CPU and the skeleton
of a Gameboy assembler intended for unit tests.
This commit is contained in:
2016-12-18 23:43:41 -08:00
commit 6e2f4096a2
38 changed files with 4424 additions and 0 deletions

17
src/gbasm/errors.h Normal file
View File

@@ -0,0 +1,17 @@
#ifndef GB_ASM_ERRORS_H
#define GB_ASM_ERRORS_H
#include "gbasm/types.h"
void gbasm_unknown_opcode_error(const struct gbasm_parsed_inst *inst);
void gbasm_too_many_args_error(const struct gbasm_parsed_inst *inst,
const struct gbasm_op_info *opcode);
void gbasm_arg_wrong_type_error(const struct gbasm_parsed_inst *inst,
const struct gbasm_op_info *opcode);
void gbasm_too_few_args_error(const struct gbasm_parsed_inst *inst,
const struct gbasm_op_info *opcode);
#endif