mirror of
https://github.com/holub/mame
synced 2025-04-22 00:11:58 +03:00
tms32051: That's an elaborate way to do a nop (nw)
This commit is contained in:
parent
ab27807d72
commit
898090ffe9
@ -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
|
||||
|
@ -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; }
|
||||
|
Loading…
Reference in New Issue
Block a user