Mini-test

This commit is contained in:
Jeffrey Pfau 2013-04-07 01:39:49 -07:00
parent 9575e7f0d2
commit 68f2eed84d
1 changed files with 9 additions and 1 deletions

View File

@ -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;
}
}