diff options
author | comex | 2015-01-16 03:24:12 -0500 |
---|---|---|
committer | comex | 2015-01-16 04:22:55 -0500 |
commit | 8fb40a9c236e58b002e447b1c8ac124732a9dd8a (patch) | |
tree | f5f32cca52ac85eecc950e573640457696616712 /test/test-jump-dis.c | |
parent | add a test assembly file, not used yet (diff) | |
download | substitute-8fb40a9c236e58b002e447b1c8ac124732a9dd8a.tar.gz |
jump dis - seemingly working(!)
Diffstat (limited to 'test/test-jump-dis.c')
-rw-r--r-- | test/test-jump-dis.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/test/test-jump-dis.c b/test/test-jump-dis.c new file mode 100644 index 0000000..161c80c --- /dev/null +++ b/test/test-jump-dis.c @@ -0,0 +1,12 @@ +#define JUMP_DIS_VERBOSE +#include <stdio.h> +#include "jump-dis-arm-multi.c" +#include <stdlib.h> +int main(UNUSED int argc, char **argv) { + static char buf[1048576]; + UNUSED size_t size = fread(buf, 1, sizeof(buf), stdin); + int patch_size = atoi(argv[1]); + int thumb = atoi(argv[2]); + bool bad = P(main)(buf, 0x10000, 0x10000 + patch_size, thumb); + printf("final: bad = %d\n", bad); +} |