all repos — mgba @ 68f2eed84d0290500f05a4b3973bb45adf330de7

mGBA Game Boy Advance Emulator

Mini-test
Jeffrey Pfau jeffrey@endrift.com
Sun, 07 Apr 2013 01:39:49 -0700
commit

68f2eed84d0290500f05a4b3973bb45adf330de7

parent

9575e7f0d29b2f532fe2e0644135402138d397de

1 files changed, 9 insertions(+), 1 deletions(-)

jump to
M src/main.csrc/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; -}+}