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

19
src/tests/gbasm/test.h Normal file
View File

@@ -0,0 +1,19 @@
#ifndef GBASM_TEST_H
#define GBASM_TEST_H
#include <stdint.h>
struct gbasm_test {
const char *name;
const char *asm_source;
const uint8_t *expected_output;
const int expected_output_len;
};
struct gbasm_tests {
const char *name;
int num_tests;
const struct gbasm_test **tests;
};
#endif