updated Musashi to MAME 0.117
[picodrive.git] / cpu / musashi / m68k.h
index 6de1fab..15fcdb0 100644 (file)
@@ -6,10 +6,10 @@
 /* ======================================================================== */\r
 /*\r
  *                                  MUSASHI\r
- *                                Version 3.3\r
+ *                                Version 3.31\r
  *\r
  * A portable Motorola M680x0 processor emulation engine.\r
- * Copyright 1998-2001 Karl Stenerud.  All rights reserved.\r
+ * Copyright 1998-2007 Karl Stenerud.  All rights reserved.\r
  *\r
  * This code may be freely used for non-commercial purposes as long as this\r
  * copyright notice remains unaltered in the source code and any binary files\r
@@ -240,6 +240,14 @@ void m68k_set_cmpild_instr_callback(void  (*callback)(unsigned int val, int reg)
  */\r
 void m68k_set_rte_instr_callback(void  (*callback)(void));\r
 \r
+/* Set the callback for the TAS instruction.\r
+ * You must enable M68K_TAS_HAS_CALLBACK in m68kconf.h.\r
+ * The CPU calls this callback every time it encounters a TAS instruction.\r
+ * Default behavior: return 1, allow writeback.\r
+ */\r
+void m68k_set_tas_instr_callback(int  (*callback)(void));\r
+\r
+\r
 \r
 /* Set the callback for informing of a large PC change.\r
  * You must enable M68K_MONITOR_PC in m68kconf.h.\r
@@ -352,7 +360,7 @@ unsigned int m68k_disassemble(char* str_buff, unsigned int pc, unsigned int cpu_
 /* Same as above but accepts raw opcode data directly rather than fetching\r
  * via the read/write interfaces.\r
  */\r
-unsigned int m68k_disassemble_raw(char* str_buff, unsigned int pc, unsigned char* opdata, unsigned char* argdata, int length, unsigned int cpu_type);\r
+unsigned int m68k_disassemble_raw(char* str_buff, unsigned int pc, const unsigned char* opdata, const unsigned char* argdata, unsigned int cpu_type);\r
 \r
 \r
 /* ======================================================================== */\r