diff options
Diffstat (limited to 'src/devices/cpu/pdp1/tx0dasm.cpp')
-rw-r--r-- | src/devices/cpu/pdp1/tx0dasm.cpp | 20 |
1 files changed, 15 insertions, 5 deletions
diff --git a/src/devices/cpu/pdp1/tx0dasm.cpp b/src/devices/cpu/pdp1/tx0dasm.cpp index cda24ed930c..34d49194ed3 100644 --- a/src/devices/cpu/pdp1/tx0dasm.cpp +++ b/src/devices/cpu/pdp1/tx0dasm.cpp @@ -1,14 +1,19 @@ // license:BSD-3-Clause // copyright-holders:Raphael Nabet #include "emu.h" -#include "cpu/pdp1/tx0.h" +#include "tx0dasm.h" -CPU_DISASSEMBLE(tx0_64kw) +u32 tx0_64kw_disassembler::opcode_alignment() const +{ + return 1; +} + +offs_t tx0_64kw_disassembler::disassemble(std::ostream &stream, offs_t pc, const data_buffer &opcodes, const data_buffer ¶ms) { int md; int x; - md = oprom[0] << 24 | oprom[1] << 16 | oprom[2] << 8 | oprom[3]; + md = opcodes.r32(pc); x = md & 0177777; switch (md >> 16) @@ -29,12 +34,17 @@ CPU_DISASSEMBLE(tx0_64kw) return 1; } -CPU_DISASSEMBLE(tx0_8kw) +u32 tx0_8kw_disassembler::opcode_alignment() const +{ + return 1; +} + +offs_t tx0_8kw_disassembler::disassemble(std::ostream &stream, offs_t pc, const data_buffer &opcodes, const data_buffer ¶ms) { int md; int x; - md = oprom[0] << 24 | oprom[1] << 16 | oprom[2] << 8 | oprom[3]; + md = opcodes.r32(pc); x = md & 0017777; switch (md >> 13) |