tms32051: That's an elaborate way to do a nop (nw)

This commit is contained in:
Olivier Galibert 2016-12-10 12:27:19 +01:00
parent ab27807d72
commit 898090ffe9
2 changed files with 0 additions and 21 deletions

View File

@ -631,26 +631,6 @@ WRITE16_MEMBER( tms32051_device::cpuregs_w )
}
bool tms32051_device::memory_read(address_spacenum spacenum, offs_t offset, int size, uint64_t &value)
{
/* TODO: alignment if offset is odd */
if (spacenum == AS_PROGRAM)
{
value = (PM_READ16(offset>>1));
}
else if (spacenum == AS_DATA)
{
value = (DM_READ16(offset>>1));
}
else if (spacenum == AS_IO)
{
value = m_io->read_word(offset);
}
return 1;
}
void tms32053_device::device_reset()
{
// reset registers

View File

@ -77,7 +77,6 @@ protected:
// device_memory_interface overrides
virtual const address_space_config *memory_space_config(address_spacenum spacenum = AS_0) const override { return (spacenum == AS_PROGRAM) ? &m_program_config : ( (spacenum == AS_IO) ? &m_io_config : ( (spacenum == AS_DATA) ? &m_data_config : nullptr ) ); }
virtual bool memory_read(address_spacenum spacenum, offs_t offset, int size, uint64_t &value) override;
// device_disasm_interface overrides
virtual uint32_t disasm_min_opcode_bytes() const override { return 2; }