pass this instead of NULL and options instead of 0 in the class based cpu cores (nw)

This commit is contained in:
smf- 2013-03-06 14:10:52 +00:00
parent 18e1c572cb
commit 62ba32cb4f
15 changed files with 16 additions and 16 deletions

View File

@ -808,7 +808,7 @@ UINT32 adsp21xx_device::disasm_max_opcode_bytes() const
offs_t adsp21xx_device::disasm_disassemble(char *buffer, offs_t pc, const UINT8 *oprom, const UINT8 *opram, UINT32 options)
{
extern CPU_DISASSEMBLE( adsp21xx );
return CPU_DISASSEMBLE_NAME(adsp21xx)(NULL, buffer, pc, oprom, opram, 0);
return CPU_DISASSEMBLE_NAME(adsp21xx)(this, buffer, pc, oprom, opram, options);
}

View File

@ -357,7 +357,7 @@ UINT32 asap_device::disasm_max_opcode_bytes() const
offs_t asap_device::disasm_disassemble(char *buffer, offs_t pc, const UINT8 *oprom, const UINT8 *opram, UINT32 options)
{
extern CPU_DISASSEMBLE( asap );
return CPU_DISASSEMBLE_NAME(asap)(NULL, buffer, pc, oprom, opram, 0);
return CPU_DISASSEMBLE_NAME(asap)(this, buffer, pc, oprom, opram, options);
}

View File

@ -630,7 +630,7 @@ UINT32 avr8_device::disasm_max_opcode_bytes() const
offs_t avr8_device::disasm_disassemble(char *buffer, offs_t pc, const UINT8 *oprom, const UINT8 *opram, UINT32 options)
{
extern CPU_DISASSEMBLE( avr8 );
return CPU_DISASSEMBLE_NAME(avr8)(NULL, buffer, pc, oprom, opram, 0);
return CPU_DISASSEMBLE_NAME(avr8)(this, buffer, pc, oprom, opram, options);
}

View File

@ -419,7 +419,7 @@ UINT32 cosmac_device::disasm_max_opcode_bytes() const
offs_t cosmac_device::disasm_disassemble(char *buffer, offs_t pc, const UINT8 *oprom, const UINT8 *opram, UINT32 options)
{
extern CPU_DISASSEMBLE( cosmac );
return CPU_DISASSEMBLE_NAME(cosmac)(NULL, buffer, pc, oprom, opram, 0);
return CPU_DISASSEMBLE_NAME(cosmac)(this, buffer, pc, oprom, opram, options);
}

View File

@ -251,7 +251,7 @@ UINT32 dsp16_device::disasm_max_opcode_bytes() const
offs_t dsp16_device::disasm_disassemble(char *buffer, offs_t pc, const UINT8 *oprom, const UINT8 *opram, UINT32 options)
{
extern CPU_DISASSEMBLE( dsp16a );
return CPU_DISASSEMBLE_NAME(dsp16a)(NULL, buffer, pc, oprom, opram, 0);
return CPU_DISASSEMBLE_NAME(dsp16a)(this, buffer, pc, oprom, opram, options);
}

View File

@ -469,7 +469,7 @@ UINT32 dsp32c_device::disasm_max_opcode_bytes() const
offs_t dsp32c_device::disasm_disassemble(char *buffer, offs_t pc, const UINT8 *oprom, const UINT8 *opram, UINT32 options)
{
extern CPU_DISASSEMBLE( dsp32c );
return CPU_DISASSEMBLE_NAME(dsp32c)(NULL, buffer, pc, oprom, opram, 0);
return CPU_DISASSEMBLE_NAME(dsp32c)(this, buffer, pc, oprom, opram, options);
}

View File

@ -289,7 +289,7 @@ void hd61700_cpu_device::state_string_export(const device_state_entry &entry, as
offs_t hd61700_cpu_device::disasm_disassemble(char *buffer, offs_t pc, const UINT8 *oprom, const UINT8 *opram, UINT32 options)
{
extern CPU_DISASSEMBLE( hd61700 );
return CPU_DISASSEMBLE_NAME(hd61700)(NULL, buffer, pc, oprom, opram, 0);
return CPU_DISASSEMBLE_NAME(hd61700)(this, buffer, pc, oprom, opram, options);
}

View File

@ -229,7 +229,7 @@ UINT32 i8008_device::disasm_max_opcode_bytes() const
offs_t i8008_device::disasm_disassemble(char *buffer, offs_t pc, const UINT8 *oprom, const UINT8 *opram, UINT32 options)
{
extern CPU_DISASSEMBLE( i8008 );
return CPU_DISASSEMBLE_NAME(i8008)(NULL, buffer, pc, oprom, opram, 0);
return CPU_DISASSEMBLE_NAME(i8008)(this, buffer, pc, oprom, opram, options);
}
//**************************************************************************

View File

@ -231,7 +231,7 @@ void lr35902_cpu_device::device_reset()
offs_t lr35902_cpu_device::disasm_disassemble(char *buffer, offs_t pc, const UINT8 *oprom, const UINT8 *opram, UINT32 options)
{
extern CPU_DISASSEMBLE( lr35902 );
return CPU_DISASSEMBLE_NAME( lr35902 )(NULL, buffer, pc, oprom, opram, 0);
return CPU_DISASSEMBLE_NAME(lr35902)(this, buffer, pc, oprom, opram, options);
}

View File

@ -207,7 +207,7 @@ UINT32 hd6309_device::disasm_max_opcode_bytes() const
offs_t hd6309_device::disasm_disassemble(char *buffer, offs_t pc, const UINT8 *oprom, const UINT8 *opram, UINT32 options)
{
extern CPU_DISASSEMBLE( hd6309 );
return CPU_DISASSEMBLE_NAME(hd6309)(NULL, buffer, pc, oprom, opram, options);
return CPU_DISASSEMBLE_NAME(hd6309)(this, buffer, pc, oprom, opram, options);
}

View File

@ -111,7 +111,7 @@ void konami_cpu_device::device_start()
offs_t konami_cpu_device::disasm_disassemble(char *buffer, offs_t pc, const UINT8 *oprom, const UINT8 *opram, UINT32 options)
{
extern CPU_DISASSEMBLE( konami );
return CPU_DISASSEMBLE_NAME(konami)(NULL, buffer, pc, oprom, opram, options);
return CPU_DISASSEMBLE_NAME(konami)(this, buffer, pc, oprom, opram, options);
}

View File

@ -486,9 +486,9 @@ offs_t r3000_device::disasm_disassemble(char *buffer, offs_t pc, const UINT8 *op
extern CPU_DISASSEMBLE( r3000be );
if (m_endianness == ENDIANNESS_BIG)
return CPU_DISASSEMBLE_NAME(r3000be)(NULL, buffer, pc, oprom, opram, 0);
return CPU_DISASSEMBLE_NAME(r3000be)(this, buffer, pc, oprom, opram, options);
else
return CPU_DISASSEMBLE_NAME(r3000le)(NULL, buffer, pc, oprom, opram, 0);
return CPU_DISASSEMBLE_NAME(r3000le)(this, buffer, pc, oprom, opram, options);
}

View File

@ -341,7 +341,7 @@ void sm8500_cpu_device::process_interrupts()
offs_t sm8500_cpu_device::disasm_disassemble(char *buffer, offs_t pc, const UINT8 *oprom, const UINT8 *opram, UINT32 options)
{
extern CPU_DISASSEMBLE( sm8500 );
return CPU_DISASSEMBLE_NAME( sm8500 )(NULL, buffer, pc, oprom, opram, 0);
return CPU_DISASSEMBLE_NAME(sm8500)(this, buffer, pc, oprom, opram, options);
}

View File

@ -632,7 +632,7 @@ UINT32 tms3203x_device::disasm_max_opcode_bytes() const
offs_t tms3203x_device::disasm_disassemble(char *buffer, offs_t pc, const UINT8 *oprom, const UINT8 *opram, UINT32 options)
{
extern CPU_DISASSEMBLE( tms3203x );
return CPU_DISASSEMBLE_NAME(tms3203x)(NULL, buffer, pc, oprom, opram, 0);
return CPU_DISASSEMBLE_NAME(tms3203x)(this, buffer, pc, oprom, opram, options);
}

View File

@ -327,7 +327,7 @@ UINT32 necdsp_device::disasm_max_opcode_bytes() const
offs_t necdsp_device::disasm_disassemble(char *buffer, offs_t pc, const UINT8 *oprom, const UINT8 *opram, UINT32 options)
{
extern CPU_DISASSEMBLE( upd7725 );
return CPU_DISASSEMBLE_NAME(upd7725)(NULL, buffer, pc, oprom, opram, 0);
return CPU_DISASSEMBLE_NAME(upd7725)(this, buffer, pc, oprom, opram, options);
}
void necdsp_device::execute_run()