X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=cpu%2Fmusashi%2Fm68k.h;h=15fcdb03caeecf6e59f5d5c62cfc97b1e02f8eb5;hb=c6a4c892866387e150ffcaa3af8b8c18d9ec6d58;hp=6de1fab5dbc57d5b27538d9a7551552da5ccdb68;hpb=60305cdd4d832c9a0b69914a78d4668a1b4d2b48;p=picodrive.git diff --git a/cpu/musashi/m68k.h b/cpu/musashi/m68k.h index 6de1fab..15fcdb0 100644 --- a/cpu/musashi/m68k.h +++ b/cpu/musashi/m68k.h @@ -6,10 +6,10 @@ /* ======================================================================== */ /* * MUSASHI - * Version 3.3 + * Version 3.31 * * A portable Motorola M680x0 processor emulation engine. - * Copyright 1998-2001 Karl Stenerud. All rights reserved. + * Copyright 1998-2007 Karl Stenerud. All rights reserved. * * This code may be freely used for non-commercial purposes as long as this * copyright notice remains unaltered in the source code and any binary files @@ -240,6 +240,14 @@ void m68k_set_cmpild_instr_callback(void (*callback)(unsigned int val, int reg) */ void m68k_set_rte_instr_callback(void (*callback)(void)); +/* Set the callback for the TAS instruction. + * You must enable M68K_TAS_HAS_CALLBACK in m68kconf.h. + * The CPU calls this callback every time it encounters a TAS instruction. + * Default behavior: return 1, allow writeback. + */ +void m68k_set_tas_instr_callback(int (*callback)(void)); + + /* Set the callback for informing of a large PC change. * You must enable M68K_MONITOR_PC in m68kconf.h. @@ -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 * via the read/write interfaces. */ -unsigned int m68k_disassemble_raw(char* str_buff, unsigned int pc, unsigned char* opdata, unsigned char* argdata, int length, unsigned int cpu_type); +unsigned int m68k_disassemble_raw(char* str_buff, unsigned int pc, const unsigned char* opdata, const unsigned char* argdata, unsigned int cpu_type); /* ======================================================================== */