timers implemented for new z80 mode
[picodrive.git] / Pico / carthw / svp / compiler.c
index 911da17..2db22b1 100644 (file)
@@ -1,3 +1,7 @@
+// SSP1601 to ARM recompiler
+
+// (c) Copyright 2008, Grazvydas "notaz" Ignotas
+// Free for non-commercial use.
 
 #include "../../PicoInt.h"
 #include "compiler.h"
@@ -1394,7 +1398,7 @@ static int translate_op(unsigned int op, int *pc, int imm, int *end_cond, int *j
                }
 
                // ldi ri, simm
-               case 0x0c ... 0x0f:
+               case 0x0c: case 0x0d: case 0x0e: case 0x0f:
                        tmpv = (op>>8)&7;
                        known_regs.r[tmpv] = op;
                        known_regb |= 1 << (tmpv + 8);
@@ -1759,6 +1763,7 @@ void *ssp_translate_block(int pc)
                fwrite(tcache, 1, (tcache_ptr - tcache)*4, f);
                fclose(f);
        }
+       printf("dumped tcache.bin\n");
        exit(0);
 #endif