Mini-test
Jeffrey Pfau jeffrey@endrift.com
Sun, 07 Apr 2013 01:39:49 -0700
1 files changed,
9 insertions(+),
1 deletions(-)
jump to
M
src/main.c
→
src/main.c
@@ -1,9 +1,17 @@
+#include "arm.h" #include "gba.h" +#include <sys/stat.h> +#include <fcntl.h> + int main(int argc, char** argv) { struct GBA gba; GBAInit(&gba); + int fd = open("test.rom", O_RDONLY); + GBALoadROM(&gba, fd); + gba.cpu.gprs[ARM_PC] = 0x08000004; + ARMStep(&gba.cpu); GBADeinit(&gba); return 0; -}+}