X-Git-Url: http://shamusworld.gotdns.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Fm68000%2Freadcpu.c;h=4fcb100926c2dc1073f24c9835c7249f213661f8;hb=dffa89ebdee4d328a8e166b30fcdf38a3fc54b28;hp=3287e03b91d047fa68f158664455f6ded9759be2;hpb=e82391f9b8113450e84d7178b61076f54e7cfa81;p=virtualjaguar diff --git a/src/m68000/readcpu.c b/src/m68000/readcpu.c index 3287e03..4fcb100 100644 --- a/src/m68000/readcpu.c +++ b/src/m68000/readcpu.c @@ -153,7 +153,9 @@ const struct mnemolookup lookuptab[] = { { i_ILLG, "" }, }; -struct instr *table68k; + +struct instr * table68k; + STATIC_INLINE amodes mode_from_str(const char * str) { @@ -174,6 +176,7 @@ STATIC_INLINE amodes mode_from_str(const char * str) return 0; } + STATIC_INLINE amodes mode_from_mr(int mode, int reg) { switch (mode) @@ -203,6 +206,7 @@ STATIC_INLINE amodes mode_from_mr(int mode, int reg) return 0; } + static void build_insn(int insn) { int find = -1; @@ -948,8 +952,10 @@ void read_table68k(void) build_insn(i); } + static int mismatch; + static void handle_merges (long int opcode) { uint16_t smsk; @@ -1087,6 +1093,7 @@ if (opcode == 0x31C3 || code == 0x31C3) } } + // What this really does is expand the # of handlers, which is why the // opcode has to be passed into the opcode handler... // E.g., $F620 maps into $F621-F627 as well; this code does this expansion. @@ -1108,7 +1115,9 @@ void do_merges(void) nr_cpuop_funcs = nr; } + int get_no_mismatches(void) { return mismatch; } +