diff options
author | Olivier Galibert <galibert@pobox.com> | 2017-07-05 11:44:49 +0200 |
---|---|---|
committer | Olivier Galibert <galibert@pobox.com> | 2017-11-26 17:41:27 +0100 |
commit | 6caef2579a1490f05d28bcede731cbdd45fc5c65 (patch) | |
tree | 8055384e183be3cb27e7d0894ac53dc96c09e6fa /src/devices/cpu/v60/v60.cpp | |
parent | 34b222062c89adbeed822f56be6130421777e11f (diff) |
dvdisasm: Overhaul [O. Galibert]
Disassemblers are now independant classes. Not only the code is
cleaner, but unidasm has access to all the cpu cores again. The
interface to the disassembly method has changed from byte buffers to
objects that give a result to read methods. This also adds support
for lfsr and/or paged PCs.
Diffstat (limited to 'src/devices/cpu/v60/v60.cpp')
-rw-r--r-- | src/devices/cpu/v60/v60.cpp | 13 |
1 files changed, 3 insertions, 10 deletions
diff --git a/src/devices/cpu/v60/v60.cpp b/src/devices/cpu/v60/v60.cpp index dbe8ed08599..33184a0c776 100644 --- a/src/devices/cpu/v60/v60.cpp +++ b/src/devices/cpu/v60/v60.cpp @@ -75,6 +75,7 @@ Package: 132-pin PGA, 200-pin QFP #include "emu.h" #include "v60.h" +#include "v60d.h" #include "debugger.h" DEFINE_DEVICE_TYPE(V60, v60_device, "v60", "V60") @@ -115,17 +116,9 @@ device_memory_interface::space_config_vector v60_device::memory_space_config() c } -offs_t v60_device::disasm_disassemble(std::ostream &stream, offs_t pc, const uint8_t *oprom, const uint8_t *opram, uint32_t options) +util::disasm_interface *v60_device::create_disassembler() { - extern CPU_DISASSEMBLE( v60 ); - return CPU_DISASSEMBLE_NAME(v60)(this, stream, pc, oprom, opram, options); -} - - -offs_t v70_device::disasm_disassemble(std::ostream &stream, offs_t pc, const uint8_t *oprom, const uint8_t *opram, uint32_t options) -{ - extern CPU_DISASSEMBLE( v70 ); - return CPU_DISASSEMBLE_NAME(v70)(this, stream, pc, oprom, opram, options); + return new v60_disassembler; } |