mirror of
https://github.com/holub/mame
synced 2025-10-09 01:39:48 +03:00
fixed linking unidasm in small builds (nw)
This commit is contained in:
parent
5319ba6148
commit
b01384ee73
@ -171,7 +171,6 @@ end
|
|||||||
|
|
||||||
links {
|
links {
|
||||||
"dasm",
|
"dasm",
|
||||||
"emu",
|
|
||||||
"utils",
|
"utils",
|
||||||
"expat",
|
"expat",
|
||||||
"7z",
|
"7z",
|
||||||
@ -207,6 +206,7 @@ includedirs {
|
|||||||
|
|
||||||
files {
|
files {
|
||||||
MAME_DIR .. "src/tools/unidasm.c",
|
MAME_DIR .. "src/tools/unidasm.c",
|
||||||
|
MAME_DIR .. "src/emu/emucore.c",
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@ -347,7 +347,7 @@ static int print_arg (char *dest, int mode, int arg, const UINT8 *opram, unsigne
|
|||||||
/*****************************************************************************
|
/*****************************************************************************
|
||||||
* Disassemble a single command and return the number of bytes it uses.
|
* Disassemble a single command and return the number of bytes it uses.
|
||||||
*****************************************************************************/
|
*****************************************************************************/
|
||||||
unsigned Dasm9900 (char *buffer, unsigned pc, int model_id, const UINT8 *oprom, const UINT8 *opram, device_t *device)
|
unsigned Dasm9900 (char *buffer, unsigned pc, int model_id, const UINT8 *oprom, const UINT8 *opram)
|
||||||
{
|
{
|
||||||
int OP, OP2, opc;
|
int OP, OP2, opc;
|
||||||
int sarg, darg, smode, dmode;
|
int sarg, darg, smode, dmode;
|
||||||
@ -787,7 +787,7 @@ unsigned Dasm9900 (char *buffer, unsigned pc, int model_id, const UINT8 *oprom,
|
|||||||
}
|
}
|
||||||
|
|
||||||
default:
|
default:
|
||||||
device->logerror("debbugger internal error, file %s, line %d\n", __FILE__, __LINE__);
|
osd_printf_error("debbugger internal error, file %s, line %d\n", __FILE__, __LINE__);
|
||||||
case illegal:
|
case illegal:
|
||||||
sprintf (buffer, "data >%04x", OP);
|
sprintf (buffer, "data >%04x", OP);
|
||||||
break;
|
break;
|
||||||
@ -798,15 +798,15 @@ unsigned Dasm9900 (char *buffer, unsigned pc, int model_id, const UINT8 *oprom,
|
|||||||
|
|
||||||
CPU_DISASSEMBLE( tms9900 )
|
CPU_DISASSEMBLE( tms9900 )
|
||||||
{
|
{
|
||||||
return Dasm9900(buffer, pc, TMS9900_ID, oprom, opram, device);
|
return Dasm9900(buffer, pc, TMS9900_ID, oprom, opram);
|
||||||
}
|
}
|
||||||
|
|
||||||
CPU_DISASSEMBLE( tms9980 )
|
CPU_DISASSEMBLE( tms9980 )
|
||||||
{
|
{
|
||||||
return Dasm9900(buffer, pc, TMS9980_ID, oprom, opram, device);
|
return Dasm9900(buffer, pc, TMS9980_ID, oprom, opram);
|
||||||
}
|
}
|
||||||
|
|
||||||
CPU_DISASSEMBLE( tms9995 )
|
CPU_DISASSEMBLE( tms9995 )
|
||||||
{
|
{
|
||||||
return Dasm9900(buffer, pc, TMS9995_ID, oprom, opram, device);
|
return Dasm9900(buffer, pc, TMS9995_ID, oprom, opram);
|
||||||
}
|
}
|
||||||
|
@ -355,17 +355,6 @@ static const dasm_table_entry dasm_table[] =
|
|||||||
// { "z8000", _16be, 0, CPU_DISASSEMBLE_NAME(z8000) },
|
// { "z8000", _16be, 0, CPU_DISASSEMBLE_NAME(z8000) },
|
||||||
};
|
};
|
||||||
|
|
||||||
void CLIB_DECL ATTR_PRINTF(1,2) logerror(const char *format, ...)
|
|
||||||
{
|
|
||||||
/* silent logerrors are allowed in disassemblers */
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
void CLIB_DECL ATTR_PRINTF(1,2) osd_printf_debug(const char *format, ...)
|
|
||||||
{
|
|
||||||
/* silent osd_printf_debugs are allowed in disassemblers */
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
static int parse_options(int argc, char *argv[], options *opts)
|
static int parse_options(int argc, char *argv[], options *opts)
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user