diff options
| author | Kimplul <kimi.h.kuparinen@gmail.com> | 2023-06-27 16:29:44 +0300 |
|---|---|---|
| committer | Kimplul <kimi.h.kuparinen@gmail.com> | 2023-06-27 16:29:44 +0300 |
| commit | b942d430199d8060fbac42a2b37e2d7b1beac243 (patch) | |
| tree | e33d0ad707d69fe30ea6d0582aaef56b3f233645 /lib | |
| parent | 6aefc5167a64e05580dcf1afc70efa496ed145ac (diff) | |
| download | copyjit-b942d430199d8060fbac42a2b37e2d7b1beac243.tar.gz copyjit-b942d430199d8060fbac42a2b37e2d7b1beac243.zip | |
add some info on supported arches
Diffstat (limited to 'lib')
| -rw-r--r-- | lib/imm.h | 56 | ||||
| -rw-r--r-- | lib/source.mk | 2 |
2 files changed, 33 insertions, 25 deletions
@@ -1,43 +1,51 @@ #ifndef COPYJIT_IMM_H #define COPYJIT_IMM_H unsigned char gen_addia[] = { - 0x48, 0x03, 0x35, 0x05, 0x00, 0x00, 0x00, 0xe9, 0x08, 0x00, 0x00, 0x00, - 0x0f, 0x1f, 0x84, 0x00, 0x00, 0x00, 0x00, 0x00 + 0x97, 0x07, 0x00, 0x00, 0x93, 0x87, 0x47, 0x01, 0x9c, 0x63, 0xbe, 0x95, + 0x17, 0x03, 0x00, 0x00, 0x67, 0x00, 0x03, 0x01, 0x00, 0x00, 0x00, 0x00, + 0x00, 0x00, 0x00, 0x00 }; -unsigned int gen_addia_len = 20; +unsigned int gen_addia_len = 28; unsigned char gen_addio[] = { - 0x4c, 0x03, 0x05, 0x05, 0x00, 0x00, 0x00, 0xe9, 0x08, 0x00, 0x00, 0x00, - 0x0f, 0x1f, 0x84, 0x00, 0x00, 0x00, 0x00, 0x00 + 0x97, 0x07, 0x00, 0x00, 0x93, 0x87, 0x47, 0x01, 0x9c, 0x63, 0x3e, 0x97, + 0x17, 0x03, 0x00, 0x00, 0x67, 0x00, 0x03, 0x01, 0x00, 0x00, 0x00, 0x00, + 0x00, 0x00, 0x00, 0x00 }; -unsigned int gen_addio_len = 20; +unsigned int gen_addio_len = 28; unsigned char gen_addix[] = { - 0x48, 0x03, 0x15, 0x05, 0x00, 0x00, 0x00, 0xe9, 0x08, 0x00, 0x00, 0x00, - 0x0f, 0x1f, 0x84, 0x00, 0x00, 0x00, 0x00, 0x00 + 0x97, 0x07, 0x00, 0x00, 0x93, 0x87, 0x47, 0x01, 0x9c, 0x63, 0x3e, 0x96, + 0x17, 0x03, 0x00, 0x00, 0x67, 0x00, 0x03, 0x01, 0x00, 0x00, 0x00, 0x00, + 0x00, 0x00, 0x00, 0x00 }; -unsigned int gen_addix_len = 20; +unsigned int gen_addix_len = 28; unsigned char gen_addiy[] = { - 0x48, 0x03, 0x0d, 0x05, 0x00, 0x00, 0x00, 0xe9, 0x08, 0x00, 0x00, 0x00, - 0x0f, 0x1f, 0x84, 0x00, 0x00, 0x00, 0x00, 0x00 + 0x97, 0x07, 0x00, 0x00, 0x93, 0x87, 0x47, 0x01, 0x9c, 0x63, 0xbe, 0x96, + 0x17, 0x03, 0x00, 0x00, 0x67, 0x00, 0x03, 0x01, 0x00, 0x00, 0x00, 0x00, + 0x00, 0x00, 0x00, 0x00 }; -unsigned int gen_addiy_len = 20; +unsigned int gen_addiy_len = 28; unsigned char gen_lia[] = { - 0x48, 0x8b, 0x35, 0x05, 0x00, 0x00, 0x00, 0xe9, 0x08, 0x00, 0x00, 0x00, - 0x0f, 0x1f, 0x84, 0x00, 0x00, 0x00, 0x00, 0x00 + 0x97, 0x05, 0x00, 0x00, 0x93, 0x85, 0x25, 0x01, 0x8c, 0x61, 0x17, 0x03, + 0x00, 0x00, 0x67, 0x00, 0x03, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, + 0x00, 0x00 }; -unsigned int gen_lia_len = 20; +unsigned int gen_lia_len = 26; unsigned char gen_lio[] = { - 0x4c, 0x8b, 0x05, 0x05, 0x00, 0x00, 0x00, 0xe9, 0x08, 0x00, 0x00, 0x00, - 0x0f, 0x1f, 0x84, 0x00, 0x00, 0x00, 0x00, 0x00 + 0x17, 0x07, 0x00, 0x00, 0x13, 0x07, 0x27, 0x01, 0x18, 0x63, 0x17, 0x03, + 0x00, 0x00, 0x67, 0x00, 0x03, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, + 0x00, 0x00 }; -unsigned int gen_lio_len = 20; +unsigned int gen_lio_len = 26; unsigned char gen_lix[] = { - 0x48, 0x8b, 0x15, 0x05, 0x00, 0x00, 0x00, 0xe9, 0x08, 0x00, 0x00, 0x00, - 0x0f, 0x1f, 0x84, 0x00, 0x00, 0x00, 0x00, 0x00 + 0x17, 0x06, 0x00, 0x00, 0x13, 0x06, 0x26, 0x01, 0x10, 0x62, 0x17, 0x03, + 0x00, 0x00, 0x67, 0x00, 0x03, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, + 0x00, 0x00 }; -unsigned int gen_lix_len = 20; +unsigned int gen_lix_len = 26; unsigned char gen_liy[] = { - 0x48, 0x8b, 0x0d, 0x05, 0x00, 0x00, 0x00, 0xe9, 0x08, 0x00, 0x00, 0x00, - 0x0f, 0x1f, 0x84, 0x00, 0x00, 0x00, 0x00, 0x00 + 0x97, 0x06, 0x00, 0x00, 0x93, 0x86, 0x26, 0x01, 0x94, 0x62, 0x17, 0x03, + 0x00, 0x00, 0x67, 0x00, 0x03, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, + 0x00, 0x00 }; -unsigned int gen_liy_len = 20; +unsigned int gen_liy_len = 26; #endif /* COPYJIT_OPS_H */ diff --git a/lib/source.mk b/lib/source.mk index e1ba486..9403aff 100644 --- a/lib/source.mk +++ b/lib/source.mk @@ -1,6 +1,6 @@ # some glue to keep everything together lib/prune: lib/empty.bin - $(COMPILE) lib/prune.c -o lib/prune + $(HOST_COMPILE) lib/prune.c -o lib/prune lib/empty.c: ops/common.h lib/empty.bin: lib/empty |
